target/sparc: fake UltraSPARC T1 PCR and PIC registers
authorArtyom Tarasenko <atar4qemu@gmail.com>
Sun, 9 Feb 2025 21:12:48 +0000 (22:12 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 18 Feb 2025 16:29:03 +0000 (08:29 -0800)
commit172e7644f336dd82cb8d56cfb964477731f34f43
tree30e2213efd576217eec1d05e0e34ecc71f0935cf
parent7a74e468089a58756b438d31a2a9a97f183780d7
target/sparc: fake UltraSPARC T1 PCR and PIC registers

Fake access to
   PCR Performance Control Register
and
   PIC Performance Instrumentation Counter.

Ignore writes in privileged mode, and return 0 on reads.

This allows booting Tribblix, MilaX and v9os under Niagara target.

Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250209211248.50383-1-atar4qemu@gmail.com>
target/sparc/insns.decode
target/sparc/translate.c