qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] s390x: Remove inline function ebcdic_put and re


From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH] s390x: Remove inline function ebcdic_put and related data from cpu.h
Date: Thu, 3 Jan 2013 15:35:45 +0100

On 01.01.2013, at 19:24, Stefan Weil wrote:

> The function is only used in misc_helper.c, so move it to that file.
> 
> This reduces the size of debug executables (compiled without optimization)
> because they get unused code and data for each compilation which includes
> cpu.h.
> 
> Executables with optimization don't change their size.
> 
> ebcdic2ascii is currently unused and could be removed (not done here).
> 
> The array ascii2ebcdic must be accessed with an unsigned index, therefore
> (int)ascii[i] was replaced by (uint8_t)ascii[i]. The old code would have
> failed for a signed char less than 0. The current code only converts
> "QEMU" and spaces to EBCDIC, so there is no problem today.
> 
> Signed-off-by: Stefan Weil <address@hidden>

Thanks, applied to s390-next.

Alex




reply via email to

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