From 230a4bfd9c5a65a3b12226de486e05b566c7c006 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 9 Jan 2020 00:40:32 -0800 Subject: arch: Make the generic micropc enabled PCState set nupc to 1. The default constructor of the micropc enabled generic PCState class set the next micropc to 0, when the non-default constructor and at least the x86 initCPU utility function set it to 1. This makes more sense since either the micropc doesn't matter as a concept if the instruction isn't microcoded, or, unless redirected by a micropc branch, you're going to want to execute the next microop and not just repeat the first one. Change-Id: I418ea986a071453563c4c8aad4fc4eb4f7beb641 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24184 Reviewed-by: Jason Lowe-Power Maintainer: Gabe Black Tested-by: kokoro --- src/arch/generic/types.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/generic/types.hh b/src/arch/generic/types.hh index 7f9f93f42..64fef6413 100644 --- a/src/arch/generic/types.hh +++ b/src/arch/generic/types.hh @@ -222,7 +222,7 @@ class UPCState : public SimplePCState nupc(1); } - UPCState() : _upc(0), _nupc(0) {} + UPCState() : _upc(0), _nupc(1) {} UPCState(Addr val) : _upc(0), _nupc(0) { set(val); } bool -- cgit v1.2.3