diff options
| author | Bin Meng <bmeng@tinylab.org> | 2023-02-28 18:40:19 +0800 |
|---|---|---|
| committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-03-01 16:40:12 -0800 |
| commit | 0ee342256af9205e7388efdf193a6d8f1ba1a617 (patch) | |
| tree | 124c9b5f95c9ce6118682aa8897d91280b50fc55 /scripts/probe-gdb-support.py | |
| parent | a5e0f68652fe1ed0231311d6c8aaeaf55c631821 (diff) | |
| download | focaccia-qemu-0ee342256af9205e7388efdf193a6d8f1ba1a617.tar.gz focaccia-qemu-0ee342256af9205e7388efdf193a6d8f1ba1a617.zip | |
target/riscv: Use g_assert() for the predicate() NULL check
At present riscv_csrrw_check() checks the CSR predicate() against NULL and throws RISCV_EXCP_ILLEGAL_INST if it is NULL. But this is a pure software check, and has nothing to do with the emulation of the hardware behavior, thus it is inappropriate to return illegal instruction exception when software forgets to install the hook. Change to use g_assert() instead. Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Weiwei Li<liweiwei@iscas.ac.cn> Message-ID: <20230228104035.1879882-4-bmeng@tinylab.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'scripts/probe-gdb-support.py')
0 files changed, 0 insertions, 0 deletions