qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH RFC] hppa: assemble_16() in wide mode


From: Richard Henderson
Subject: Re: [PATCH RFC] hppa: assemble_16() in wide mode
Date: Sat, 2 Mar 2024 14:01:32 -1000
User-agent: Mozilla Thunderbird

On 3/2/24 07:21, Sven Schnelle wrote:
Hi Richard,

while looking into a HPPA tcg issue i noticed that the current
tcg code doesn't do the special wide mode handling described in the
Parisc 2.0 specification, Chapter E -> assemble_16(). In wide mode,
assemble_16() adds two more bits to the immediate value/displacement
of certain instruction like ldo(ldi), st[bhwd] and ld[bhwd] and some
others.

I wonder what the easiest way to implement this is - it has to be xor'd
and is dependend on the W bit, so i don't think it will be possible to
implement this with changing only insn.decode. I came up with the
attached patch, do you think there's a better way?

Yes, it is possible to do this with decodetree.
I'll whip something up.


r~




reply via email to

[Prev in Thread] Current Thread [Next in Thread]