Skip to contentSkip to conversation

[4887] wrhpr hstick_cmpr is a store, not a load

Qemu-devel Blue Swirl 1 participant 1 message Jul 18, 2008

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Revision: 4887

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4887
Author:   blueswir1
Date:     2008-07-18 10:26:07 +0000 (Fri, 18 Jul 2008)

Log Message:
-----------
wrhpr hstick_cmpr is a store, not a load

Modified Paths:
--------------
trunk/target-sparc/translate.c

Modified: trunk/target-sparc/translate.c
===================================================================

target-sparc/translate.c +2 -3
@@ -2204,9 +2204,8 @@
                     tcg_gen_ext_i32_tl(cpu_dst, cpu_tmp32);
                     break;
                 case 31: // hstick_cmpr
-                    tcg_gen_trunc_tl_i32(cpu_tmp32, cpu_dst);
-                    tcg_gen_st_i32(cpu_tmp32, cpu_env,
-                                   offsetof(CPUSPARCState, hstick_cmpr));
+                    tcg_gen_ld_tl(cpu_dst, cpu_env,
+                                  offsetof(CPUSPARCState, hstick_cmpr));
                     break;
                 default:
                     goto illegal_insn;