diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-29 01:03:05 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-29 01:03:05 +0000 |
commit | ab1861222d7991993d8e87c79ac7440e649c6b29 (patch) | |
tree | 4864a691a4d52324fe4626261e202525dd3a8659 /target-sparc/cpu.h | |
parent | 30bf6eb8e97ab76947462bdbf42f04640d245267 (diff) | |
download | qemu-ab1861222d7991993d8e87c79ac7440e649c6b29.tar.gz qemu-ab1861222d7991993d8e87c79ac7440e649c6b29.tar.bz2 qemu-ab1861222d7991993d8e87c79ac7440e649c6b29.zip |
Add instruction counter.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4799 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/cpu.h')
-rw-r--r-- | target-sparc/cpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index b56dc91ff5..03bc2dfd09 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -437,6 +437,11 @@ static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) } #endif +#define CPU_PC_FROM_TB(env, tb) do { \ + env->pc = tb->pc; \ + env->npc = tb->cs_base; \ + } while(0) + #include "cpu-all.h" #endif |