diff options
author | Song Gao <gaosong@loongson.cn> | 2024-05-28 16:38:55 +0800 |
---|---|---|
committer | Song Gao <gaosong@loongson.cn> | 2024-06-06 11:56:45 +0800 |
commit | 2b284fa9ea17171b11e9112daf19801b90b690a6 (patch) | |
tree | b3b488e7fdb44dd49452fe1ebfa2a554ef330a0c /target/loongarch | |
parent | f2e61edb2946b0473ad634ed8ec401954ace5c5a (diff) | |
download | qemu-2b284fa9ea17171b11e9112daf19801b90b690a6.zip qemu-2b284fa9ea17171b11e9112daf19801b90b690a6.tar.gz qemu-2b284fa9ea17171b11e9112daf19801b90b690a6.tar.bz2 |
hw/loongarch/virt: Enable extioi virt extension
This patch adds a new board attribute 'v-eiointc'.
A value of true enables the virt extended I/O interrupt controller.
VMs working in kvm mode have 'v-eiointc' enabled by default.
Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240528083855.1912757-4-gaosong@loongson.cn>
Diffstat (limited to 'target/loongarch')
-rw-r--r-- | target/loongarch/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/loongarch/cpu.h b/target/loongarch/cpu.h index 41b8e6d..6c41faf 100644 --- a/target/loongarch/cpu.h +++ b/target/loongarch/cpu.h @@ -36,6 +36,7 @@ #define CPUNAME_REG 0x20 #define MISC_FUNC_REG 0x420 #define IOCSRM_EXTIOI_EN 48 +#define IOCSRM_EXTIOI_INT_ENCODE 49 #define IOCSR_MEM_SIZE 0x428 |