[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
riscv: g_assert for NULL predicate?
From: |
Wu, Fei |
Subject: |
riscv: g_assert for NULL predicate? |
Date: |
Mon, 3 Apr 2023 21:42:59 +0800 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 |
Recent commit 0ee342256af92 switches to g_assert() for the predicate()
NULL check from returning RISCV_EXCP_ILLEGAL_INST. Qemu doesn't have
predicate() for un-allocated CSRs, then a buggy userspace application
reads CSR such as 0x4 causes qemu to exit, I don't think it's expected.
.global _start
.text
_start:
csrr t3, 0x4
Thanks,
Fei.
- riscv: g_assert for NULL predicate?,
Wu, Fei <=