]> Git Repo - qemu.git/commitdiff
target/arm: Don't read r4 from v8M exception stackframe twice
authorPeter Maydell <[email protected]>
Mon, 8 Oct 2018 13:55:02 +0000 (14:55 +0100)
committerPeter Maydell <[email protected]>
Mon, 8 Oct 2018 13:55:02 +0000 (14:55 +0100)
A cut-and-paste error meant we were reading r4 from the v8M
callee-saves exception stack frame twice. This is harmless
since it just meant we did two memory accesses to the same
location, but it's unnecessary. Delete it.

Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-id: 20181002150304[email protected]

target/arm/helper.c

index 073fb3c5cb0c273263f4f00d57bc962401d3d7e1..5e721a65272275e4ad056f87873c84ede3860727 100644 (file)
@@ -7303,7 +7303,6 @@ static void do_v7m_exception_exit(ARMCPU *cpu)
             }
 
             pop_ok = pop_ok &&
-                v7m_stack_read(cpu, &env->regs[4], frameptr + 0x8, mmu_idx) &&
                 v7m_stack_read(cpu, &env->regs[4], frameptr + 0x8, mmu_idx) &&
                 v7m_stack_read(cpu, &env->regs[5], frameptr + 0xc, mmu_idx) &&
                 v7m_stack_read(cpu, &env->regs[6], frameptr + 0x10, mmu_idx) &&
This page took 0.04137 seconds and 4 git commands to generate.