From 3d7b417e13152587df587fe58789740c3ef7abb9 Mon Sep 17 00:00:00 2001 From: aurel32 Date: Tue, 21 Oct 2008 11:28:46 +0000 Subject: target-ppc: Convert XER accesses to TCG Define XER bits as a single register and access them individually to avoid defining 5 32-bit registers (TCG doesn't permit to map 8-bit registers). Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5500 c046a42c-6fe2-441c-8c8c-71466251a162 --- gdbstub.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdbstub.c') diff --git a/gdbstub.c b/gdbstub.c index ed3f5c6841..b1e35002d4 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -445,7 +445,7 @@ static int cpu_gdb_read_register(CPUState *env, uint8_t *mem_buf, int n) } case 67: GET_REGL(env->lr); case 68: GET_REGL(env->ctr); - case 69: GET_REG32(ppc_load_xer(env)); + case 69: GET_REGL(env->xer); case 70: GET_REG32(0); /* fpscr */ } } @@ -485,8 +485,8 @@ static int cpu_gdb_write_register(CPUState *env, uint8_t *mem_buf, int n) env->ctr = ldtul_p(mem_buf); return sizeof(target_ulong); case 69: - ppc_store_xer(env, ldl_p(mem_buf)); - return 4; + env->xer = ldtul_p(mem_buf); + return sizeof(target_ulong); case 70: /* fpscr */ return 4; -- cgit v1.2.3