From ae3dc85cc3092f6f4b6e779aaec5398573c34f99 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 25 Mar 2020 15:53:26 -0700 Subject: [PATCH] misc: Use a const char * in the m5op m5_add_symbol. The symbol name is not modified by the m5 op, so a const char * is more accurate and gives the caller more flexibility as far as what they can pass in. Change-Id: Iee567bceef501643175dd5c65551a4c8554a6e3b Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27224 Maintainer: Bobby R. Bruce Tested-by: kokoro Reviewed-by: Ciro Santilli --- include/gem5/m5ops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gem5/m5ops.h b/include/gem5/m5ops.h index 440ea2d38..1c080175e 100644 --- a/include/gem5/m5ops.h +++ b/include/gem5/m5ops.h @@ -56,7 +56,7 @@ uint64_t m5_write_file(void *buffer, uint64_t len, uint64_t offset, void m5_debug_break(void); void m5_switch_cpu(void); void m5_dist_toggle_sync(void); -void m5_add_symbol(uint64_t addr, char *symbol); +void m5_add_symbol(uint64_t addr, const char *symbol); void m5_load_symbol(); void m5_panic(void); void m5_work_begin(uint64_t workid, uint64_t threadid); -- 2.30.2