From c29457b7a0c3f31aaa94b8bfe3d84e9fc553bf21 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 15 Dec 2020 17:36:26 -0800 Subject: [PATCH] x86: Use the right register type when initializing x86 kvm processes. Functionally this doesn't matter, since no bitfields are used in the type and it devolves into just being a uint64_t, but we should use CR8 and not CR4 when initializing the CR8 register. Change-Id: Ifc7dc9072d552f7010afce9115427c8ed624ebb9 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38535 Maintainer: Gabe Black Tested-by: kokoro Reviewed-by: Matthew Poremba --- src/arch/x86/process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/x86/process.cc b/src/arch/x86/process.cc index e11d563f9..e9cdb617c 100644 --- a/src/arch/x86/process.cc +++ b/src/arch/x86/process.cc @@ -387,7 +387,7 @@ X86_64Process::initState() tc->setMiscReg(MISCREG_CR4, cr4); - CR4 cr8 = 0; + CR8 cr8 = 0; tc->setMiscReg(MISCREG_CR8, cr8); tc->setMiscReg(MISCREG_MXCSR, 0x1f80); -- 2.30.2