commit | e8f44c50dfe75315d1ff6efc837d62cbe7368c9b | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Thu Oct 17 19:37:30 2019 +0200 |
committer | Paul Walmsley <paul.walmsley@sifive.com> | Fri Oct 25 16:32:38 2019 -0700 |
tree | 86ed82465290ac756176af511f8f40180487979d | |
parent | a6d9e2672609653146cd9f4063f3d30619828787 [diff] |
riscv: cleanup do_trap_break If we always compile the get_break_insn_length inline function we can remove the ifdefs and let dead code elimination take care of the warn branch that is now unreadable because the report_bug stub always returns BUG_TRAP_TYPE_BUG. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Anup Patel <anup@brainfault.org> Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>