[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 1/3] hw/riscv: virt: Don't use a macro for the PLIC configurat
From: |
Alistair Francis |
Subject: |
[PATCH v1 1/3] hw/riscv: virt: Don't use a macro for the PLIC configuration |
Date: |
Fri, 3 Sep 2021 16:50:00 +1000 |
From: Alistair Francis <alistair.francis@wdc.com>
Using a macro for the PLIC configuration doesn't make the code any
easier to read. Instead it makes it harder to figure out what is going
on, so let's remove it.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
hw/riscv/virt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c
index 5624adda58..d562ec6722 100644
--- a/hw/riscv/virt.c
+++ b/hw/riscv/virt.c
@@ -550,7 +550,7 @@ static char *plic_hart_config_string(int hart_count)
int i;
for (i = 0; i < hart_count; i++) {
- vals[i] = VIRT_PLIC_HART_CONFIG;
+ vals[i] = "MS";
}
vals[i] = NULL;
--
2.31.1
- [PATCH v1 1/3] hw/riscv: virt: Don't use a macro for the PLIC configuration,
Alistair Francis <=