openpower-cores / a2i

Other
243 stars 40 forks source link

Why msgclr does not set UsesSPR in iuq_fxu_decode.vhdl #50

Open Grubby-CPU opened 2 years ago

Grubby-CPU commented 2 years ago

Hi,

I find that msgclr does not set UsesSPR signal in iuq_fxu_decode.vhdl. This cause an error when "mtspr, CCR2, 0x20000; msgclr 0" is executed. In particular, "mtspr CCR2, 0x20000" sets EN_PC to enable the msgclr instruction. However, since msgclr does not set UsersSPR in iuq_fxu_decode, the dependency check module fails. Thus, msgclr is executed with EN_PC is 0. An error happened. Any comments?

Thanks