aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/int64_helper.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-07-03 07:05:50 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-10-23 15:08:10 +0000
commit2336c1f1970a5c5cfd34a1785af646c960b6f43f (patch)
treec5e3aab3604e8d1151bfa15140ec32ec7851a5d0 /target-sparc/int64_helper.c
parentab3b491f2131e12503d165a8ffaef5f3a488eafe (diff)
Sparc: move trivial functions from op_helper.c
These functions don't need access to CPUState or already pass it, so relocating them from op_helper.c to helper.c and int64_helper.c is trivial. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-sparc/int64_helper.c')
-rw-r--r--target-sparc/int64_helper.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/target-sparc/int64_helper.c b/target-sparc/int64_helper.c
index c21dc9c5be..2bb1910ed9 100644
--- a/target-sparc/int64_helper.c
+++ b/target-sparc/int64_helper.c
@@ -157,3 +157,8 @@ void do_interrupt(CPUState *env)
env->npc = env->pc + 4;
env->exception_index = -1;
}
+
+trap_state *cpu_tsptr(CPUState* env)
+{
+ return &env->ts[env->tl & MAXTL_MASK];
+}