cpu-o3: Make the smtFetchPolicy a Param.ScopedEnum
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Thu, 3 Jan 2019 17:45:56 +0000 (17:45 +0000)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Thu, 17 Jan 2019 11:09:08 +0000 (11:09 +0000)
commit38339e0a7f7ce119feefc95591703df2f851ee4d
tree3f99ddbd0e1b9073c23becf8aba1c28417e5a436
parent8ddec57062bdde7935bb0472f2d993fb0c38c680
cpu-o3: Make the smtFetchPolicy a Param.ScopedEnum

The smtFetchPolicy is a parameter in the o3 cpu that can have 5
different values. Previously this setting was done through a string
and a parser function would turn it into a c++ enum value. This
changeset turns the string into a python Param.ScopedEnum.

Change-Id: Iafb4b4b27587541185ea912e5ed581bce09695f5
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15396
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
src/cpu/o3/O3CPU.py
src/cpu/o3/deriv.cc
src/cpu/o3/fetch.hh
src/cpu/o3/fetch_impl.hh