mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
target/riscv/cpu.c: export isa_edata_arr[]
This array will be read by the TCG accel class, allowing it to handle priv spec verifications on its own. The array will remain here in cpu.c because it's also used by the riscv,isa string function. To export it we'll finish it with an empty element since ARRAY_SIZE() won't work outside of cpu.c. Get rid of its ARRAY_SIZE() usage now to alleviate the changes for the next patch. Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-ID: <20230925175709.35696-19-dbarboza@ventanamicro.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
4de9151b20
commit
7935e2c49c
2 changed files with 28 additions and 26 deletions
|
@ -726,6 +726,13 @@ extern const RISCVCPUMultiExtConfig riscv_cpu_vendor_exts[];
|
|||
extern const RISCVCPUMultiExtConfig riscv_cpu_experimental_exts[];
|
||||
extern Property riscv_cpu_options[];
|
||||
|
||||
typedef struct isa_ext_data {
|
||||
const char *name;
|
||||
int min_version;
|
||||
int ext_enable_offset;
|
||||
} RISCVIsaExtData;
|
||||
extern const RISCVIsaExtData isa_edata_arr[];
|
||||
|
||||
void riscv_add_satp_mode_properties(Object *obj);
|
||||
|
||||
/* CSR function table */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue