diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2013-10-15 14:22:43 -0400 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2013-10-15 14:22:43 -0400 |
commit | 9bd017b8aee1432b78361da89ce4980dabb70084 (patch) | |
tree | dd72d8882f825474a0a24297137e819212c8ec33 /src/cpu/o3/cpu.cc | |
parent | c009d0eb2a02dddce6cca1033d73efde21445487 (diff) | |
download | gem5-9bd017b8aee1432b78361da89ce4980dabb70084.tar.xz |
cpu/o3: clean up scoreboard object
It had a bunch of fields (and associated constructor
parameters) thet it didn't really use, and the array
initialization was needlessly verbose.
Also just hardwired the getReg() method to aleays
return true for misc regs, rather than having an array
of bits that we always kept marked as ready.
Diffstat (limited to 'src/cpu/o3/cpu.cc')
-rw-r--r-- | src/cpu/o3/cpu.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cpu/o3/cpu.cc b/src/cpu/o3/cpu.cc index 4b316ae7e..496961380 100644 --- a/src/cpu/o3/cpu.cc +++ b/src/cpu/o3/cpu.cc @@ -1,5 +1,6 @@ /* * Copyright (c) 2011-2012 ARM Limited + * Copyright (c) 2013 Advanced Micro Devices, Inc. * All rights reserved * * The license below extends only to copyright in the software and shall @@ -235,11 +236,9 @@ FullO3CPU<Impl>::FullO3CPU(DerivO3CPUParams *params) params->smtROBPolicy, params->smtROBThreshold, params->numThreads), - scoreboard(params->numThreads, - TheISA::NumIntRegs, params->numPhysIntRegs, - TheISA::NumFloatRegs, params->numPhysFloatRegs, - TheISA::NumMiscRegs * numThreads, - TheISA::ZeroReg), + scoreboard(name() + ".scoreboard", + regFile.totalNumPhysRegs(), TheISA::NumMiscRegs, + TheISA::ZeroReg, TheISA::ZeroReg), isa(numThreads, NULL), |