]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/riscv: Introduce extension implied rule helpers
authorFrank Chang <frank.chang@sifive.com>
Tue, 25 Jun 2024 11:46:25 +0000 (19:46 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 26 Jun 2024 13:07:35 +0000 (23:07 +1000)
commit047da861f94e1306cc1d76f3f76462e4f7ed2930
treea3397c9402021ec64f800061ead70dc56341e5f7
parentf04f7709203c539bec29258288ba846b993db8e3
target/riscv: Introduce extension implied rule helpers

Introduce helpers to enable the extensions based on the implied rules.
The implied extensions are enabled recursively, so we don't have to
expand all of them manually. This also eliminates the old-fashioned
ordering requirement. For example, Zvksg implies Zvks, Zvks implies
Zvksed, etc., removing the need to check the implied rules of Zvksg
before Zvks.

Signed-off-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: Jerry Zhang Jian <jerry.zhangjian@sifive.com>
Tested-by: Max Chou <max.chou@sifive.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-ID: <20240625114629.27793-3-frank.chang@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/tcg/tcg-cpu.c