From 375ee38b4ba6c2c640a77253ffadcdcea5d76002 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Wed, 5 Mar 2008 17:59:48 +0000 Subject: Convert Sparc64 trap state ops to TCG git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4018 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-sparc/cpu.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'target-sparc/cpu.h') diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 9b9d85687b..79870f561d 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -169,6 +169,12 @@ #define NB_MMU_MODES 2 #else #define NB_MMU_MODES 3 +typedef struct trap_state { + uint64_t tpc; + uint64_t tnpc; + uint64_t tstate; + uint32_t tt; +} trap_state; #endif typedef struct CPUSPARCState { @@ -234,10 +240,8 @@ typedef struct CPUSPARCState { #if defined(TARGET_SPARC64) #define MAXTL 4 uint64_t t0, t1, t2; - uint64_t tpc[MAXTL]; - uint64_t tnpc[MAXTL]; - uint64_t tstate[MAXTL]; - uint32_t tt[MAXTL]; + trap_state *tsptr; + trap_state ts[MAXTL]; uint32_t xcc; /* Extended integer condition codes */ uint32_t asi; uint32_t pstate; -- cgit v1.2.3