summaryrefslogtreecommitdiff
path: root/src/cpu/o3/checker.cc
diff options
context:
space:
mode:
authorRekai Gonzalez Alberquilla <Rekai.GonzalezAlberquilla@arm.com>2015-05-05 16:47:24 +0100
committerRekai Gonzalez Alberquilla <Rekai.GonzalezAlberquilla@arm.com>2015-05-05 16:47:24 +0100
commit21f8242430c7a1935a892aac1c26b970b306b113 (patch)
treeed0a865314e7b0fef98bd3e9199d3e23ee1464df /src/cpu/o3/checker.cc
parent8faeec44a69ee56ca9252cd36a2bb8e22d02bddd (diff)
downloadgem5-21f8242430c7a1935a892aac1c26b970b306b113.tar.xz
cpu: Change literal integer constants to meaningful labels
fu_pool and inst_queue were using -1 for "no such FU" and -2 for "all those FUs are busy at the moment" when requesting for a FU and replying. This patch introduces new constants NoCapableFU and NoFreeFU respectively. In addition, the condition (idx == -2 || idx != -1) is equivalent to (idx != -1), so this patch also simplifies that. --HG-- extra : rebase_source : 4833717b9d1e09d7594d1f34f882e13fc4b86846
Diffstat (limited to 'src/cpu/o3/checker.cc')
0 files changed, 0 insertions, 0 deletions