Skip to content

Commit

Permalink
RISC-V: Add a missing "," in riscv_excp_names
Browse files Browse the repository at this point in the history
This would almost certainly cause the exception names to be reported
incorrectly.  Coverity found the issue (CID 1420223).  As per Peter's
suggestion, I've also added a comma at the end of the list to avoid the issue
reappearing in the future.

Fixes: ab67a1d ("target/riscv: Add support for the new execption numbers")
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
  • Loading branch information
palmer-dabbelt committed Mar 5, 2020
1 parent 55afdac commit fd990e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target/riscv/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ const char * const riscv_excp_names[] = {
"exec_page_fault",
"load_page_fault",
"reserved",
"store_page_fault"
"store_page_fault",
"reserved",
"reserved",
"reserved",
"reserved",
"guest_exec_page_fault",
"guest_load_page_fault",
"reserved",
"guest_store_page_fault"
"guest_store_page_fault",
};

const char * const riscv_intr_names[] = {
Expand Down

0 comments on commit fd990e8

Please sign in to comment.