[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 7/7] target/riscv: Convert mip to target_ulon
From: |
Alistair Francis |
Subject: |
Re: [Qemu-devel] [PATCH v3 7/7] target/riscv: Convert mip to target_ulong |
Date: |
Fri, 23 Aug 2019 08:18:59 -0700 |
On Thu, Aug 15, 2019 at 2:38 PM Alistair Francis
<address@hidden> wrote:
>
> The mip register is an MXLEN-bit long register. Convert it to a
> target_ulong type instead of uint32_t.
>
> Signed-off-by: Alistair Francis <address@hidden>
MIP is 32-bit to allow atomic access on 32-bit hosts, so I am going to
send a v4 with this patch dropped.
Alistair
> ---
> target/riscv/cpu.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
> index 2dc9b17678..0a7985c3f7 100644
> --- a/target/riscv/cpu.h
> +++ b/target/riscv/cpu.h
> @@ -130,7 +130,7 @@ struct CPURISCVState {
> * wuth the invariant that CPU_INTERRUPT_HARD is set iff mip is non-zero.
> * mip is 32-bits to allow atomic_read on 32-bit hosts.
> */
> - uint32_t mip;
> + target_ulong mip;
> uint32_t miclaim;
>
> target_ulong mie;
> --
> 2.22.0
>
- [Qemu-devel] [PATCH v3 2/7] riscv: plic: Remove unused interrupt functions, (continued)
- [Qemu-devel] [PATCH v3 2/7] riscv: plic: Remove unused interrupt functions, Alistair Francis, 2019/08/15
- [Qemu-devel] [PATCH v3 4/7] target/riscv: Update the Hypervisor CSRs to v0.4, Alistair Francis, 2019/08/15
- [Qemu-devel] [PATCH v3 5/7] target/riscv: Use both register name and ABI name, Alistair Francis, 2019/08/15
- [Qemu-devel] [PATCH v3 6/7] target/riscv: Fix mstatus dirty mask, Alistair Francis, 2019/08/15
- [Qemu-devel] [PATCH v3 7/7] target/riscv: Convert mip to target_ulong, Alistair Francis, 2019/08/15
- Re: [Qemu-devel] [PATCH v3 0/7] RISC-V: Hypervisor prep work part 2, no-reply, 2019/08/15