[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/5] target/rx: Use target_ulong for address in LI
From: |
Richard Henderson |
Subject: |
[PULL 1/5] target/rx: Use target_ulong for address in LI |
Date: |
Tue, 30 Jul 2024 11:11:57 +1000 |
Using int32_t meant that the address was sign-extended to uint64_t
when passing to translator_ld*, triggering an assert.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2453
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Thomas Huth <thuth@redhat.com>
---
target/rx/translate.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/rx/translate.c b/target/rx/translate.c
index 9b81cf20b3..9aade2b6e5 100644
--- a/target/rx/translate.c
+++ b/target/rx/translate.c
@@ -85,7 +85,8 @@ static uint32_t decode_load_bytes(DisasContext *ctx, uint32_t
insn,
static uint32_t li(DisasContext *ctx, int sz)
{
- int32_t tmp, addr;
+ target_ulong addr;
+ uint32_t tmp;
CPURXState *env = ctx->env;
addr = ctx->base.pc_next;
--
2.43.0
- [PULL 0/5] misc patch queue, Richard Henderson, 2024/07/29
- [PULL 2/5] util/getauxval: Ensure setting errno if not found, Richard Henderson, 2024/07/29
- [PATCH for-9.1] tests/vm/openbsd: Install tomli, Richard Henderson, 2024/07/29
- [PULL 1/5] target/rx: Use target_ulong for address in LI,
Richard Henderson <=
- [PULL 3/5] linux-user/main: Check errno when getting AT_EXECFD, Richard Henderson, 2024/07/29
- [PULL 4/5] util/cpuinfo: Make use of elf_aux_info(3) on OpenBSD, Richard Henderson, 2024/07/29
- [PULL 5/5] linux-user: open_self_stat: Implement num_threads, Richard Henderson, 2024/07/29
- Re: [PULL 0/5] misc patch queue, Richard Henderson, 2024/07/30