mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-03 16:55:42 +00:00
target/riscv: Add a TYPE_RISCV_CPU_BASE CPU
Backports c0a635f3973d974befb954463287786fd988bb64
This commit is contained in:
parent
8e4e0a6993
commit
19c937f2cc
|
@ -48,6 +48,12 @@
|
||||||
#define TYPE_RISCV_CPU_SIFIVE_U34 RISCV_CPU_TYPE_NAME("sifive-u34")
|
#define TYPE_RISCV_CPU_SIFIVE_U34 RISCV_CPU_TYPE_NAME("sifive-u34")
|
||||||
#define TYPE_RISCV_CPU_SIFIVE_U54 RISCV_CPU_TYPE_NAME("sifive-u54")
|
#define TYPE_RISCV_CPU_SIFIVE_U54 RISCV_CPU_TYPE_NAME("sifive-u54")
|
||||||
|
|
||||||
|
#if defined(TARGET_RISCV32)
|
||||||
|
# define TYPE_RISCV_CPU_BASE TYPE_RISCV_CPU_BASE32
|
||||||
|
#elif defined(TARGET_RISCV64)
|
||||||
|
# define TYPE_RISCV_CPU_BASE TYPE_RISCV_CPU_BASE64
|
||||||
|
#endif
|
||||||
|
|
||||||
#define RV32 ((target_ulong)1 << (TARGET_LONG_BITS - 2))
|
#define RV32 ((target_ulong)1 << (TARGET_LONG_BITS - 2))
|
||||||
#define RV64 ((target_ulong)2 << (TARGET_LONG_BITS - 2))
|
#define RV64 ((target_ulong)2 << (TARGET_LONG_BITS - 2))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue