From 0411a9725829d626bb0b2f11a461463c96061682 Mon Sep 17 00:00:00 2001 From: j_mayer Date: Thu, 25 Oct 2007 21:35:50 +0000 Subject: Gprof prooved the PowerPC emulation spent too much time in MSR load and store routines. Coming back to a raw MSR storage model then speed-up the emulation. Improve fast MSR updates (wrtee wrteei and mtriee cases). Share rfi family instructions helpers code to avoid bug in duplicated code. Allow entering halt mode as the result of a rfi instruction. Add a new helper_regs.h file to avoid duplication of special registers manipulation routines (currently XER and MSR). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3436 c046a42c-6fe2-441c-8c8c-71466251a162 --- monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index d1310a4..65f23b4 100644 --- a/monitor.c +++ b/monitor.c @@ -1415,7 +1415,7 @@ static target_long monitor_get_msr (struct MonitorDef *md, int val) CPUState *env = mon_get_cpu(); if (!env) return 0; - return do_load_msr(env); + return env->msr; } static target_long monitor_get_xer (struct MonitorDef *md, int val) -- cgit v1.1