diff options
author | Max Filippov | 2017-02-07 11:43:12 +0100 |
---|---|---|
committer | Max Filippov | 2017-12-19 06:26:18 +0100 |
commit | 2eb967c4e9898d688a75be43955bbbc2107f29f7 (patch) | |
tree | 2deeebe8cde81a88b84e8583cb50316c5ee95723 /target/xtensa/op_helper.c | |
parent | Update version for v2.11.0 release (diff) | |
download | qemu-2eb967c4e9898d688a75be43955bbbc2107f29f7.tar.gz qemu-2eb967c4e9898d688a75be43955bbbc2107f29f7.tar.xz qemu-2eb967c4e9898d688a75be43955bbbc2107f29f7.zip |
target/xtensa: pass actual frame size to the entry helper
Currently 'entry' opcode helper accepts frame size divided by 8, as it
is encoded in the opcode. Make it more natural and accept actual frame
size instead.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'target/xtensa/op_helper.c')
-rw-r--r-- | target/xtensa/op_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/xtensa/op_helper.c b/target/xtensa/op_helper.c index 3d990c0caa..012552817f 100644 --- a/target/xtensa/op_helper.c +++ b/target/xtensa/op_helper.c @@ -249,7 +249,7 @@ void HELPER(entry)(CPUXtensaState *env, uint32_t pc, uint32_t s, uint32_t imm) if (windowstart & ((1 << callinc) - 1)) { HELPER(window_check)(env, pc, callinc); } - env->regs[(callinc << 2) | (s & 3)] = env->regs[s] - (imm << 3); + env->regs[(callinc << 2) | (s & 3)] = env->regs[s] - imm; rotate_window(env, callinc); env->sregs[WINDOW_START] |= windowstart_bit(env->sregs[WINDOW_BASE], env); |