MIPS: IPL is 8bit in Cause and Status registers if TARGET_MCU
authorYunQiang Su <yunqiang.su@cipunited.com>
Wed, 26 Jan 2022 03:21:20 +0000 (03:21 +0000)
committerYunQiang Su <yunqiang.su@cipunited.com>
Fri, 1 Apr 2022 06:57:27 +0000 (06:57 +0000)
commit15d683d4f0b390b27c54a7c92c6e4f33195bdc93
tree9ac8b550bd66fc6651da055da80da9f6a0a0ffe2
parent5901a10bdf7a872697894f2e0990bff8b2e48c39
MIPS: IPL is 8bit in Cause and Status registers if TARGET_MCU

If MIPS MCU extension is enable, the IPL section in Cause and Status
registers has been expand to 8bit instead of 6bit.

In Cause: the bits are 10-17.
In Status: the bits are 10-16 and 18.

MD00834-2B-MUCON-AFP-01.03.pdf: P49 and P61.

gcc/ChangeLog:

* config/mips/mips.cc (mips_expand_prologue):
  IPL is 8bit for MCU ASE.
gcc/config/mips/mips.cc