From: Gabe Black Date: Wed, 16 Dec 2020 01:36:26 +0000 (-0800) Subject: x86: Use the right register type when initializing x86 kvm processes. X-Git-Tag: develop-gem5-snapshot~358 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c29457b7a0c3f31aaa94b8bfe3d84e9fc553bf21;p=gem5.git 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 --- 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);