From 5696642162bcad72c24c58d46bbca29beffa490c Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 20 Feb 2021 21:55:57 +0000 Subject: [PATCH] add crossreference to bug #603 --- src/soc/decoder/power_decoder2.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/soc/decoder/power_decoder2.py b/src/soc/decoder/power_decoder2.py index 8c34db7e..6cf06f34 100644 --- a/src/soc/decoder/power_decoder2.py +++ b/src/soc/decoder/power_decoder2.py @@ -917,6 +917,10 @@ class PowerDecodeSubset(Elaboratable): spr = Signal(10, reset_less=True) comb += spr.eq(decode_spr_num(self.dec.SPR)) # from XFX + # XXX BUG - don't use hardcoded magic constants. + # also use ".value" otherwise the test fails. bit of a pain + # https://bugs.libre-soc.org/show_bug.cgi?id=603 + SPR_PID = 48 # TODO read docs for POWER9 # Microwatt doesn't implement the partition table # instead has PRTBL register (SPR) to point to process table -- 2.30.2