From 6b18ec642eabf49b09c2535c77a9766230428613 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 16 Jun 2020 18:42:48 -0700 Subject: [PATCH] mem: fixupAddr should not panic if it fails. This function should just return false in that case, and its callers should figure out what to do. Otherwise, when calling tryReadBlob in SE mode, a failure to read the blob makes gem5 panic instead of just returning false. Change-Id: I74b9cb98f595c52300d683842ece68c6031d9b85 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30376 Reviewed-by: Sandipan Das Reviewed-by: Matthew Poremba Maintainer: Gabe Black Tested-by: kokoro --- src/mem/se_translating_port_proxy.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mem/se_translating_port_proxy.cc b/src/mem/se_translating_port_proxy.cc index bc1153ef1..a8a42d04d 100644 --- a/src/mem/se_translating_port_proxy.cc +++ b/src/mem/se_translating_port_proxy.cc @@ -62,6 +62,5 @@ SETranslatingPortProxy::fixupAddr(Addr addr, BaseTLB::Mode mode) const return true; } } - panic("Page table fault when accessing virtual address %#x " - "during functional write.", addr); + return false; } -- 2.30.2