qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 1/1] target/riscv: add VILL field for vtype register macro


From: Richard Henderson
Subject: Re: [PATCH v1 1/1] target/riscv: add VILL field for vtype register macro definition
Date: Wed, 11 Dec 2024 08:05:17 -0600
User-agent: Mozilla Thunderbird

On 12/11/24 07:47, Chao Liu wrote:
Signed-off-by: Chao Liu <lc00631@tecorigin.com>
---
  target/riscv/cpu.h | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
index 284b112821..fc286484b8 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -170,7 +170,8 @@ FIELD(VTYPE, VSEW, 3, 3)
  FIELD(VTYPE, VTA, 6, 1)
  FIELD(VTYPE, VMA, 7, 1)
  FIELD(VTYPE, VEDIV, 8, 2)
-FIELD(VTYPE, RESERVED, 10, sizeof(target_ulong) * 8 - 11)
+FIELD(VTYPE, RESERVED, 10, sizeof(target_ulong) * 8 - 12)
+FIELD(VTYPE, VILL, 63, 1)

It's 63 for rv64, but it's 31 for rv32.
We handle this one manually.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]