commit | d18ebc274ca78f61094fba39ec9f206d46be5a85 | [log] [tgz] |
---|---|---|
author | Vincent Chen <vincentc@andestech.com> | Tue Mar 05 11:23:33 2019 +0800 |
committer | Palmer Dabbelt <palmer@sifive.com> | Thu May 16 20:42:12 2019 -0700 |
tree | e965c8d0b50b578f972528461223eec442e7f299 | |
parent | a21344dfc6adb78c291a48906478e76e1de08f6d [diff] |
riscv: support trap-based WARN() The WARN() related function will trigger a debug exception. This can help developers to analyze the cause of WARN() because if the debugger is connected, the control flow will be transferred to debugging environment. Signed-off-by: Vincent Chen <vincentc@andestech.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>