Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

target-rl78: Prepare SP

Prepare TCG variable and add to info output.

Signed-off-by: Andreas Färber <andreas.faerber@web.de>
  • Loading branch information...
commit ef2aab5379b9714a38bd186b64c6fc8e850d707c 1 parent fbe83ec
@afaerber authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  target-78k0/translate.c
View
3  target-78k0/translate.c
@@ -27,6 +27,7 @@
static TCGv_ptr cpu_env;
static TCGv env_pc;
+static TCGv_i32 cpu_sp;
#include "helper.h"
#define GEN_HELPER 1
@@ -60,6 +61,7 @@ void cpu_rl78_translate_init(void)
cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env");
env_pc = tcg_global_mem_new(TCG_AREG0, offsetof(CPU78K0State, pc), "pc");
+ cpu_sp = tcg_global_mem_new_i32(TCG_AREG0, offsetof(CPU78K0State, sp), "sp");
#define GEN_HELPER 2
#include "helper.h"
@@ -247,4 +249,5 @@ void rl78_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf,
RL78CPU *cpu = RL78_CPU(cs);
cpu_fprintf(f, "PC %05" PRIx32 "\n\n", cpu->env.pc);
+ cpu_fprintf(f, "SP %04" PRIx32 "\n", cpu->env.sp);
}
Please sign in to comment.
Something went wrong with that request. Please try again.