mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
target/riscv/cpu.c: redesign register_cpu_props()
The function is now a no-op for all cpu_init() callers that are setting a non-zero misa value in set_misa(), since it's no longer used to sync cpu->cfg props with env->misa_ext bits. Remove it in those cases. While we're at it, rename the function to match what it's actually doing: create user properties to set/remove CPU extensions. Make a note that it will overwrite env->misa_ext with the defaults set by each user property. Update the MISA bits comment in cpu.h as well. Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20230406180351.570807-21-dbarboza@ventanamicro.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
4f13abcb2b
commit
dd8f244f35
2 changed files with 11 additions and 35 deletions
|
@ -65,10 +65,7 @@
|
|||
|
||||
#define RV(x) ((target_ulong)1 << (x - 'A'))
|
||||
|
||||
/*
|
||||
* Consider updating register_cpu_props() when adding
|
||||
* new MISA bits here.
|
||||
*/
|
||||
/* Consider updating misa_ext_cfgs[] when adding new MISA bits here */
|
||||
#define RVI RV('I')
|
||||
#define RVE RV('E') /* E and I are mutually exclusive */
|
||||
#define RVM RV('M')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue