diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2012-09-02 07:33:39 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-09-10 13:38:33 +0200 |
commit | 089f5c06926105a35df461003ae32b7387ed4236 (patch) | |
tree | aad51a588b1113423fc2eac83c37e0859965882b /target-s390x/mem_helper.c | |
parent | 932385a367b2c67f1ea7148dcafb013db188cd23 (diff) |
target-s390x: avoid AREG0 for misc helpers
Make misc helpers take a parameter for CPUState instead
of relying on global env.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
[agraf: fix conflict]
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-s390x/mem_helper.c')
-rw-r--r-- | target-s390x/mem_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-s390x/mem_helper.c b/target-s390x/mem_helper.c index 3f8b3bab77..52f2602e5c 100644 --- a/target-s390x/mem_helper.c +++ b/target-s390x/mem_helper.c @@ -595,7 +595,7 @@ uint32_t HELPER(ex)(uint32_t cc, uint64_t v1, uint64_t addr, uint64_t ret) env->psw.addr = ret - 4; env->int_svc_code = (insn | v1) & 0xff; env->int_svc_ilc = 4; - helper_exception(EXCP_SVC); + helper_exception(env, EXCP_SVC); } else if ((insn & 0xff00) == 0xbf00) { uint32_t insn2, r1, r3, b2, d2; |