sim: Adding missing argument of panic function
authorSungkeun Kim <ksungkeun84@tamu.edu>
Thu, 24 Sep 2020 11:42:18 +0000 (06:42 -0500)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Wed, 30 Sep 2020 22:14:51 +0000 (22:14 +0000)
panic function call in panicFsOnlyPseudoInst (src/sim/pseudo_inst.cc) needs to be invoked with argument (name).

Jira Issue: https://gem5.atlassian.net/jira/software/c/projects/GEM5/issues/GEM5-786?filter=allissues

Change-Id: Iecacab7b9e0383373b69e9b790fa822d173d29c3
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35040
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/sim/pseudo_inst.cc

index 7335fda4e7e22bf471e3fb87c0fbbdc197bcb3bc..6970120036fae716893617f5452fd6bc2bdcc5be 100644 (file)
@@ -103,7 +103,7 @@ const std::string DIST_SIZE = "dist-size";
 static inline void
 panicFsOnlyPseudoInst(const char *name)
 {
-    panic("Pseudo inst \"%s\" is only available in Full System mode.");
+    panic("Pseudo inst \"%s\" is only available in Full System mode.", name);
 }
 
 void