On Sat, 17 Sept 2022 at 08:43, Song Gao <[email protected]> wrote:
>
> This patch adds LoongArch server, client support, and basic test file.
>
> Signed-off-by: Song Gao <[email protected]>
> +int get_risuop(struct reginfo *ri)
> +{
> + /* Return the risuop we have been asked to do
> + * (or -1 if this was a SIGILL for a non-risuop insn)
> + */
> + uint32_t insn = ri->faulting_insn;
> + uint32_t op = insn & 0xf;
> + uint32_t key = insn & ~0xf;
> + uint32_t risukey = 0x000001f0;
> + return (key != risukey) ? -1 : op;
> +}
You'll probably find this needs tweaking when you rebase
on current risu git, because a recent refactor means this
function should now return a RisuOp, not an int. The changes
should be minor, though.
thanks
-- PMM