From 48c5acc3eab6ff432925ec737228081c32c4f738 Mon Sep 17 00:00:00 2001 From: Easton Man Date: Wed, 14 Aug 2024 17:26:43 +0800 Subject: [PATCH] cpu-o3: fix gem5.fast compilation (#159) Change-Id: If865d0a45c2d467f374a70523c2806ccb4b5c51e --- src/cpu/golden_global_mem.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cpu/golden_global_mem.cc b/src/cpu/golden_global_mem.cc index 568a5965de..33ac4230ca 100644 --- a/src/cpu/golden_global_mem.cc +++ b/src/cpu/golden_global_mem.cc @@ -103,6 +103,7 @@ GoldenGloablMem::pmemRead(uint64_t addr, int len) return *(uint64_t *)p; default: assert(0); + return 0; } } @@ -125,6 +126,7 @@ GoldenGloablMem::pmemWrite(Addr addr, uint64_t data, int len) return; default: assert(0); + return; } }