Re: [Qemu-devel] [PATCH] decodetree: Force Python to print unsigned values

2018-11-12 Thread Richard Henderson
On 11/12/18 12:06 AM, Philippe Mathieu-Daudé wrote: >> On 11/11/18 1:02 AM, Philippe Mathieu-Daudé wrote: >>> Python internal representation is signed, so unsigned values >>> bigger than 31-bit are interpreted as signed (and printed with >>> a '-' signed). >>> Mask out to force unsigned values.

Re: [Qemu-devel] [PATCH] decodetree: Force Python to print unsigned values

2018-11-11 Thread Philippe Mathieu-Daudé
Hi Richard, On Sun, Nov 11, 2018 at 12:27 PM Richard Henderson wrote: > On 11/11/18 1:02 AM, Philippe Mathieu-Daudé wrote: > > Python internal representation is signed, so unsigned values > > bigger than 31-bit are interpreted as signed (and printed with > > a '-' signed). > > Mask out to force

Re: [Qemu-devel] [PATCH] decodetree: Force Python to print unsigned values

2018-11-11 Thread Richard Henderson
On 11/11/18 1:02 AM, Philippe Mathieu-Daudé wrote: > Python internal representation is signed, so unsigned values > bigger than 31-bit are interpreted as signed (and printed with > a '-' signed). > Mask out to force unsigned values. > > Signed-off-by: Philippe Mathieu-Daudé > --- >

[Qemu-devel] [PATCH] decodetree: Force Python to print unsigned values

2018-11-10 Thread Philippe Mathieu-Daudé
Python internal representation is signed, so unsigned values bigger than 31-bit are interpreted as signed (and printed with a '-' signed). Mask out to force unsigned values. Signed-off-by: Philippe Mathieu-Daudé --- scripts/decodetree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)