aboutsummaryrefslogtreecommitdiff
path: root/target-s390x
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-09-20 12:46:49 -0700
committerRichard Henderson <rth@twiddle.net>2015-02-03 12:06:37 -0800
commit81822c2f42e0c3d7bf36f6eec92941de33ed92b8 (patch)
tree37eba444406aff5c1a4858a76596c5ce5f0e058f /target-s390x
parent7f745b31b39cb9be8b3c3dfaf3173390ae07353e (diff)
target-s390: Fix STURA
We were storing 16 bits instead of 32. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-s390x')
-rw-r--r--target-s390x/mem_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-s390x/mem_helper.c b/target-s390x/mem_helper.c
index 5a55de86a1..4736b7bba8 100644
--- a/target-s390x/mem_helper.c
+++ b/target-s390x/mem_helper.c
@@ -1039,7 +1039,7 @@ void HELPER(stura)(CPUS390XState *env, uint64_t addr, uint64_t v1)
{
CPUState *cs = CPU(s390_env_get_cpu(env));
- stw_phys(cs->as, get_address(env, 0, 0, addr), (uint32_t)v1);
+ stl_phys(cs->as, get_address(env, 0, 0, addr), (uint32_t)v1);
}
/* load real address */