On Tue, Jan 10, 2023 at 1:28 AM Bin Meng wrote:
>
> env->mhartid is currently casted to long before printed, which drops
> the high 32-bit for rv64 on 32-bit host. Use TARGET_FMT_lx instead.
>
> Signed-off-by: Bin Meng
Thanks!
Applied to riscv-to-apply.next
Alistair
> ---
>
> target/riscv/cp
On Tue, Jan 10, 2023 at 1:28 AM Bin Meng wrote:
>
> env->mhartid is currently casted to long before printed, which drops
> the high 32-bit for rv64 on 32-bit host. Use TARGET_FMT_lx instead.
>
> Signed-off-by: Bin Meng
Reviewed-by: Alistair Francis
Alistair
> ---
>
> target/riscv/cpu.c | 6 +
On 1/9/23 07:47, Philippe Mathieu-Daudé wrote:
On 9/1/23 16:26, Bin Meng wrote:
env->mhartid is currently casted to long before printed, which drops
the high 32-bit for rv64 on 32-bit host. Use TARGET_FMT_lx instead.
Oh, a 32-bit host user!
Signed-off-by: Bin Meng
---
target/riscv/cpu.c
On Mon, Jan 9, 2023 at 11:48 PM Philippe Mathieu-Daudé
wrote:
>
> On 9/1/23 16:26, Bin Meng wrote:
> > env->mhartid is currently casted to long before printed, which drops
> > the high 32-bit for rv64 on 32-bit host. Use TARGET_FMT_lx instead.
>
> Oh, a 32-bit host user!
>
> > Signed-off-by: Bin M
On 9/1/23 16:26, Bin Meng wrote:
env->mhartid is currently casted to long before printed, which drops
the high 32-bit for rv64 on 32-bit host. Use TARGET_FMT_lx instead.
Oh, a 32-bit host user!
Signed-off-by: Bin Meng
---
target/riscv/cpu.c | 6 +++---
1 file changed, 3 insertions(+), 3
env->mhartid is currently casted to long before printed, which drops
the high 32-bit for rv64 on 32-bit host. Use TARGET_FMT_lx instead.
Signed-off-by: Bin Meng
---
target/riscv/cpu.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/target/riscv/cpu.c b/target/riscv/cpu