fastmodel: add interface to update system counter freq
authorEarl Ou <shunhsingou@google.com>
Mon, 1 Feb 2021 02:24:44 +0000 (10:24 +0800)
committerEarl Ou <shunhsingou@google.com>
Tue, 2 Feb 2021 01:08:28 +0000 (01:08 +0000)
commitf0924fc39bcd37a18cdb1d8c969c9f9f98f4e26b
tree5495abbf9713597d59470f248103ed8260ef3cd5
parent16c1986fe2733de923a2e14ef3056d2f736d5c39
fastmodel: add interface to update system counter freq

This CL set the cntfrq and system counter frequency at once from python
script. This aligns the fastmodel implementation to other part of gem5
CPU.

Change-Id: I78c9a7be801112844c03d2669a94d57015136d16
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40278
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/fastmodel/CortexA76/cortex_a76.cc
src/arch/arm/fastmodel/CortexA76/evs.cc
src/arch/arm/fastmodel/CortexA76/evs.hh
src/arch/arm/fastmodel/CortexA76/x1/x1.lisa
src/arch/arm/fastmodel/CortexA76/x2/x2.lisa
src/arch/arm/fastmodel/CortexA76/x3/x3.lisa
src/arch/arm/fastmodel/CortexA76/x4/x4.lisa
src/arch/arm/fastmodel/CortexR52/evs.cc
src/arch/arm/fastmodel/CortexR52/evs.hh
src/arch/arm/fastmodel/iris/cpu.hh