From 8f178b3d3cb5d8a923a6454eab59727fdd732a27 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 27 Aug 2020 17:23:01 +0100 Subject: [PATCH] incompatibility with POWER9 on mulhw/u due to lack of spec clarity both microwatt and IBM POWER9 violate spec http://lists.libre-soc.org/pipermail/libre-soc-dev/2020-August/000302.html --- src/soc/decoder/power_decoder2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/soc/decoder/power_decoder2.py b/src/soc/decoder/power_decoder2.py index 046b715b..0629217e 100644 --- a/src/soc/decoder/power_decoder2.py +++ b/src/soc/decoder/power_decoder2.py @@ -451,7 +451,9 @@ class DecodeOE(Elaboratable): # mulhw, mulhwu, mulhd, mulhdu - these *ignore* OE # also rotate - with m.Case(MicrOp.OP_MUL_H64, MicrOp.OP_MUL_H32, + # XXX ARGH! ignoring OE causes incompatibility with microwatt + # http://lists.libre-soc.org/pipermail/libre-soc-dev/2020-August/000302.html + with m.Case(#MicrOp.OP_MUL_H64, MicrOp.OP_MUL_H32, MicrOp.OP_SHL, MicrOp.OP_SHR, MicrOp.OP_RLC, MicrOp.OP_RLCL, MicrOp.OP_RLCR, MicrOp.OP_EXTSWSLI): -- 2.30.2