Date
21 - 23 of 23
Smstateen for Zcmt
John Hauser
Mark wrote:
Please explain to me why we would not want implementers to implement Zc*We expect people to implement the new Zcm* extensions together with Zca and Zcb. Zca is the subset of C that drops the compressed instructions for double-precision floating-point loads and stores. The expectation is that most embedded systems will find the new compressed instructions more useful than the existing ones for double-precision floating-point, especially as smaller embedded systems typically don't do double- precision floating-point at all. But even for those that do, they can still have the standard non-compressed D instructions together with Zca + Zcb + all of Zcm*. I understand that implementers want to pick and choose in embeddedThe total number of 16-bit encodings is too small to contain everything we might want to put in that space. Choices must be made. - John Hauser |
|
John Hauser
Tariq Kurd wrote:
Therefore, I'd like to allocate one Smstateen bit to JVT - the CSR only. Can I allocate bit 2 as follows?Yes, let's assume bit 2 is allocated for this purpose, in mstateen0, hstateen0, and sstateen0. *Bit 2 applies only for the case that Zcmt is implemented, which includesWe'll probably change the wording later, but for now, replace the word _encodings_ by _instructions_, and drop "For convenience". Instructions CM.JT and CM.JALT must trap because they implicitly depend on the value of jvt. ..and I'm not proposing a stateen for Zcmb, Zcmp, Zcmpe.Right. The intention is that stateen bits should be for controlling access to new state. No state, no stateen bit. - John Hauser |
|
ok, thanks John, I've done the rewording. Tariq On Mon, 23 May 2022 at 02:46, John Hauser <jh.riscv@...> wrote: Tariq Kurd wrote: --
Tariq Kurd | Chief CPU Architect | Codasip UK Design Centre | www.codasip.com |
|