All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v3 12/16] tcg-s390: Define TCG_TARGET_INSN_UNIT_SIZE
Date: Mon, 12 May 2014 10:05:13 -0700	[thread overview]
Message-ID: <5370FF49.5030800@twiddle.net> (raw)
In-Reply-To: <CAFEAcA-J+bMeH+NCTE_PXqAW3TFcoy+SUv9rptYpjLQ569bX_w@mail.gmail.com>

On 05/09/2014 06:35 AM, Peter Maydell wrote:
> On 28 April 2014 20:28, Richard Henderson <rth@twiddle.net> wrote:
>> And use tcg pointer differencing functions as appropriate.
>>
>> Signed-off-by: Richard Henderson <rth@twiddle.net>
>> ---
>>  tcg/s390/tcg-target.c | 91 ++++++++++++++++++++++++---------------------------
>>  tcg/s390/tcg-target.h |  2 ++
>>  2 files changed, 45 insertions(+), 48 deletions(-)
>>
>> diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c
>> index 1d912a7..ae1be1c 100644
>> --- a/tcg/s390/tcg-target.c
>> +++ b/tcg/s390/tcg-target.c
>> @@ -320,7 +320,7 @@ static const uint8_t tcg_cond_to_ltr_cond[] = {
>>  #ifdef CONFIG_SOFTMMU
>>  /* helper signature: helper_ld_mmu(CPUState *env, target_ulong addr,
>>     int mmu_idx) */
>> -static const void * const qemu_ld_helpers[4] = {
>> +static void * const qemu_ld_helpers[4] = {
>>      helper_ldb_mmu,
>>      helper_ldw_mmu,
>>      helper_ldl_mmu,
>> @@ -329,7 +329,7 @@ static const void * const qemu_ld_helpers[4] = {
>>
>>  /* helper signature: helper_st_mmu(CPUState *env, target_ulong addr,
>>     uintxx_t val, int mmu_idx) */
>> -static const void * const qemu_st_helpers[4] = {
>> +static void * const qemu_st_helpers[4] = {
>>      helper_stb_mmu,
>>      helper_stw_mmu,
>>      helper_stl_mmu,
> 
> Why do these lose the 'const' ?

Because "const void *" has a conversion warning to
non-const "tcg_type_unit *".  One would have to carry
the const all the way through all of the relocation
routines to solve it.

You had the exact same question about the ppc patch.


r~

  reply	other threads:[~2014-05-12 17:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1398713302-29657-1-git-send-email-rth@twiddle.net>
     [not found] ` <1398713302-29657-11-git-send-email-rth@twiddle.net>
2014-05-02 15:19   ` [Qemu-devel] [PATCH v3 10/16] tcg-arm: Define TCG_TARGET_INSN_UNIT_SIZE Peter Maydell
2014-05-02 15:24     ` Richard Henderson
2014-05-09 14:08       ` Peter Maydell
     [not found] ` <1398713302-29657-13-git-send-email-rth@twiddle.net>
2014-05-09 13:35   ` [Qemu-devel] [PATCH v3 12/16] tcg-s390: " Peter Maydell
2014-05-12 17:05     ` Richard Henderson [this message]
2014-05-12 20:41       ` Peter Maydell
     [not found] ` <1398713302-29657-15-git-send-email-rth@twiddle.net>
2014-05-09 13:39   ` [Qemu-devel] [PATCH v3 14/16] tcg-mips: " Peter Maydell
     [not found] ` <1398713302-29657-16-git-send-email-rth@twiddle.net>
2014-05-09 13:52   ` [Qemu-devel] [PATCH v3 15/16] tci: " Peter Maydell
2014-05-12 23:13     ` Richard Henderson
     [not found] ` <1398713302-29657-12-git-send-email-rth@twiddle.net>
2014-05-09 14:09   ` [Qemu-devel] [PATCH v3 11/16] tcg-aarch64: " Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5370FF49.5030800@twiddle.net \
    --to=rth@twiddle.net \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.