x86: Fix object scope in the CPUID code.
authorGabe Black <gabe.black@gmail.com>
Wed, 18 Nov 2020 05:45:55 +0000 (21:45 -0800)
committerGabe Black <gabe.black@gmail.com>
Thu, 19 Nov 2020 01:40:30 +0000 (01:40 +0000)
commit7039662eeba5ba6ff56b258a0a25236a8a4f0c83
tree88ebf5deab35447be5c7030d955e434d3185ea56
parent710ff0e99daea5aea28d4631c1b33913237ff057
x86: Fix object scope in the CPUID code.

The original version of the code takes a pointer from a temporary object
which gets destroyed before the pointer is used.

Change-Id: I16af4eefdf202f769a672e230330d8e0bfce3bb7
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37695
Reviewed-by: Matthew Poremba <matthew.poremba@amd.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/x86/cpuid.cc