diff options
author | Christoph Müllner <christoph.muellner@vrull.eu> | 2023-01-31 21:20:00 +0100 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2023-02-07 08:19:23 +1000 |
commit | 49a7f3aabba99e06768cbaf6c9429f514a9c7444 (patch) | |
tree | 71833d4e2e94ef9820a50b6cd8c9bf0a4bd54a72 /target/riscv/cpu.h | |
parent | 4b402886ac89732f903094004612039d0fd5b4cb (diff) | |
download | qemu-49a7f3aabba99e06768cbaf6c9429f514a9c7444.zip qemu-49a7f3aabba99e06768cbaf6c9429f514a9c7444.tar.gz qemu-49a7f3aabba99e06768cbaf6c9429f514a9c7444.tar.bz2 |
RISC-V: Adding XTheadCmo ISA extension
This patch adds support for the XTheadCmo ISA extension.
To avoid interfering with standard extensions, decoder and translation
are in its own xthead* specific files.
Future patches should be able to easily add additional T-Head extension.
The implementation does not have much functionality (besides accepting
the instructions and not qualifying them as illegal instructions if
the hart executes in the required privilege level for the instruction),
as QEMU does not model CPU caches and instructions are documented
to not raise any exceptions.
Co-developed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230131202013.2541053-2-christoph.muellner@vrull.eu>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'target/riscv/cpu.h')
-rw-r--r-- | target/riscv/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index bcf0826..d3ebc6f 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -473,6 +473,7 @@ struct RISCVCPUConfig { uint64_t mimpid; /* Vendor-specific custom extensions */ + bool ext_xtheadcmo; bool ext_XVentanaCondOps; uint8_t pmu_num; |