diff options
author | Helge Deller <deller@gmx.de> | 2024-01-03 20:35:18 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2024-01-17 10:32:47 +0300 |
commit | 27cdd0ce471a6d49dd898d2c619f5f13b498daff (patch) | |
tree | f0f58dfc1b4f7109c2eb244d8a03eb870901addf /hw/gpio/zaurus.c | |
parent | 0f5fb24fd760bf0e693d32c6d5d7b22f035a771d (diff) | |
download | qemu-27cdd0ce471a6d49dd898d2c619f5f13b498daff.zip qemu-27cdd0ce471a6d49dd898d2c619f5f13b498daff.tar.gz qemu-27cdd0ce471a6d49dd898d2c619f5f13b498daff.tar.bz2 |
target/hppa: Avoid accessing %gr0 when raising exception
The value of unwind_breg may reference register %r0, but we need to avoid
accessing gr0 directly and use the value 0 instead.
At runtime I've seen unwind_breg being zero with the Linux kernel when
rfi is used to jump to smp_callin().
Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Bruno Haible <bruno@clisp.org>
(cherry picked from commit 5915b67013eb8c3a84e3ef05e6ba4eae55ccd173)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/gpio/zaurus.c')
0 files changed, 0 insertions, 0 deletions