summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorPalmer Dabbelt2020-03-05 17:46:20 +0100
committerPalmer Dabbelt2020-03-05 21:01:43 +0100
commitfd990e86a7c99f5c99d430160243a3bcc64b0dea (patch)
tree0483d4f5a3ac4aea7ddf0bf5a220b460fb866d8f /target
parentMerge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200305'... (diff)
downloadqemu-fd990e86a7c99f5c99d430160243a3bcc64b0dea.tar.gz
qemu-fd990e86a7c99f5c99d430160243a3bcc64b0dea.tar.xz
qemu-fd990e86a7c99f5c99d430160243a3bcc64b0dea.zip
RISC-V: Add a missing "," in riscv_excp_names
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: ab67a1d07a ("target/riscv: Add support for the new execption numbers") Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'target')
-rw-r--r--target/riscv/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
index c47d10b739..c0b7023100 100644
--- a/target/riscv/cpu.c
+++ b/target/riscv/cpu.c
@@ -66,7 +66,7 @@ const char * const riscv_excp_names[] = {
"exec_page_fault",
"load_page_fault",
"reserved",
- "store_page_fault"
+ "store_page_fault",
"reserved",
"reserved",
"reserved",
@@ -74,7 +74,7 @@ const char * const riscv_excp_names[] = {
"guest_exec_page_fault",
"guest_load_page_fault",
"reserved",
- "guest_store_page_fault"
+ "guest_store_page_fault",
};
const char * const riscv_intr_names[] = {