diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2023-11-03 10:38:35 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2024-02-03 16:46:10 +1000 |
| commit | 49bb972513ced00ac772c282246f3b46e3cd75c3 (patch) | |
| tree | 7e3b55f8459afd0567c91a5424b8a6cbe7fa46ee /target/sparc/cpu.h | |
| parent | 1ccd6e13ccc0913bd3750f47c697c3d7c31cd418 (diff) | |
| download | focaccia-qemu-49bb972513ced00ac772c282246f3b46e3cd75c3.tar.gz focaccia-qemu-49bb972513ced00ac772c282246f3b46e3cd75c3.zip | |
target/sparc: Split ver from env->fsr
This field is read-only. It is easier to store it separately and merge it only upon read. While we're at it, use FSR_VER_SHIFT to initialize fpu_version. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Message-Id: <20231103173841.33651-17-richard.henderson@linaro.org>
Diffstat (limited to 'target/sparc/cpu.h')
| -rw-r--r-- | target/sparc/cpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/sparc/cpu.h b/target/sparc/cpu.h index 3cf8cc2d0b..216155d231 100644 --- a/target/sparc/cpu.h +++ b/target/sparc/cpu.h @@ -191,6 +191,9 @@ enum { #define FSR_NXC (1ULL << 0) #define FSR_CEXC_MASK (FSR_NVC | FSR_OFC | FSR_UFC | FSR_DZC | FSR_NXC) +#define FSR_VER_SHIFT 17 +#define FSR_VER_MASK (7 << FSR_VER_SHIFT) + #define FSR_FTT2 (1ULL << 16) #define FSR_FTT1 (1ULL << 15) #define FSR_FTT0 (1ULL << 14) |