Re: [Qemu-devel] [PATCH] decodetree: Force Python to print unsigned values
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. >>> >>> Signed-off-by: Philippe Mathieu-Daudé >>> --- >>> scripts/decodetree.py | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> Queued, thanks. > > Can you drop this from your queue? I'll send a cleaner approach (as > RFC, and I also want to log the error I got in the commit msg). Done. r~
Re: [Qemu-devel] [PATCH] decodetree: Force Python to print unsigned values
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 unsigned values. > > > > Signed-off-by: Philippe Mathieu-Daudé > > --- > > scripts/decodetree.py | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > Queued, thanks. Can you drop this from your queue? I'll send a cleaner approach (as RFC, and I also want to log the error I got in the commit msg). Thanks, Phil.
Re: [Qemu-devel] [PATCH] decodetree: Force Python to print unsigned values
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é > --- > scripts/decodetree.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Queued, thanks. r~