On 22 January 2018 at 16:56, Peter Maydell <peter.mayd...@linaro.org> wrote: > On 22 January 2018 at 16:52, Ard Biesheuvel <ard.biesheu...@linaro.org> wrote: >> On 22 January 2018 at 16:39, Peter Maydell <peter.mayd...@linaro.org> wrote: >>> This seems to be missing support for SM4EKEY (which is O==1 >>> opcode == 0b10 and also part of the v8.2 SM feature) ? > >> It is part of the v8.2 SM extension, which consists of SM3 secure hash >> and SM4 encryption, which are two different things (and AA64ISAR0 has >> separate feature bits for each). The ARM ARM does stipulate that both >> should be set if either one is set, but still provides two separate >> bits, and so one can be enabled without the other. > > Yes, I just discovered that I'd got confused by the ID registers > providing more granular settings than the various specified > extension combinations do. > > It would be nice to also have SM4 so we can say we have got all > of the v8.2 crypto extensions, but we can do that as a separate patch. >
I intend to look at SM4 as well, but not sure when exactly.