qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jia Liu <proljc@gmail.com>
To: "Andreas Färber" <afaerber@suse.de>
Cc: Dongxue Zhang <elta.era@gmail.com>, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] target-openrisc: Add typename for CPU models.
Date: Tue, 2 Jul 2013 20:30:47 +0800	[thread overview]
Message-ID: <CAJBMM-tezyfL0VXapusexncW-ojXNMzWZmxZk5sidEeipU4GEw@mail.gmail.com> (raw)
In-Reply-To: <51D2A905.2080708@suse.de>

[-- Attachment #1: Type: text/plain, Size: 2569 bytes --]

Hi Andreas,

On Tue, Jul 2, 2013 at 6:18 PM, Andreas Färber <afaerber@suse.de> wrote:
>
> Hi Jia,
>
> Am 02.07.2013 11:29, schrieb Jia Liu:
> > On Tue, Jul 2, 2013 at 5:11 PM, Dongxue Zhang <elta.era@gmail.com
> > <mailto:elta.era@gmail.com>> wrote:
> >>
> >> Make target-openrisc running OK by add typename in
> > openrisc_cpu_class_by_name().
> >>
> >> Signed-off-by: Dongxue Zhang <elta.era@gmail.com
> > <mailto:elta.era@gmail.com>>
> >> ---
> >>  target-openrisc/cpu.c | 4 +++-
> >>  1 file changed, 3 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/target-openrisc/cpu.c b/target-openrisc/cpu.c
> >> index fd90d37..d38c28b 100644
> >> --- a/target-openrisc/cpu.c
> >> +++ b/target-openrisc/cpu.c
> >> @@ -96,12 +96,14 @@ static void openrisc_cpu_initfn(Object *obj)
> >>  static ObjectClass *openrisc_cpu_class_by_name(const char *cpu_model)
> >>  {
> >>      ObjectClass *oc;
> >> +    char *typename;
> >>
> >>      if (cpu_model == NULL) {
> >>          return NULL;
> >>      }
> >>
> >> -    oc = object_class_by_name(cpu_model);
> >> +    typename = g_strdup_printf("%s-" TYPE_OPENRISC_CPU, cpu_model);
> >> +    oc = object_class_by_name(typename);
> >>      if (oc != NULL && (!object_class_dynamic_cast(oc,
> > TYPE_OPENRISC_CPU) ||
> >>                         object_class_is_abstract(oc))) {
> >>          return NULL;
> >
> > Thanks for your fix, it looks and test good to me.
>
> Sorry for the breakage. Do you want to add a
> Reviewed-by/Tested-by/Acked-by? I'd queue it for you then.

Thank you very much! May you please tell me how can I make a
Reviewed-by/Tested-by/Acked-by? I don't know too much about it.

>
> If you could upload a Linux test image somewhere that may help avoid
> breakages in the future.

I find some Linux test images at http://qemu-project.org/Testing . How can
I upload one upon to there?

>
> Also we reported that there was no maintainer for target-openrisc/ in
> MAINTAINERS file, do you want to put yourself there so that you are
> CC'ed on patches?

Thank you, I'll submit a patch to add myself into MAINTAINERS file and
review target-openrisc.

>
> Here's a pointer to the latest refactoring that partially affects or32:
> http://lists.gnu.org/archive/html/qemu-devel/2013-06/msg05354.html

Thank you for patching target-openrisc, I'll test it.

>
> Regards,
> Andreas
>
> --
> SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
> GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

Regards,
Jia

[-- Attachment #2: Type: text/html, Size: 3534 bytes --]

  reply	other threads:[~2013-07-02 12:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-02  9:11 [Qemu-devel] [PATCH] target-openrisc: Add typename for CPU models Dongxue Zhang
2013-07-02  9:29 ` Jia Liu
2013-07-02 10:18   ` Andreas Färber
2013-07-02 12:30     ` Jia Liu [this message]
2013-07-07 16:08       ` Andreas Färber
2013-07-08  2:06         ` Jia Liu
2013-07-05 23:48     ` Jia Liu

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=CAJBMM-tezyfL0VXapusexncW-ojXNMzWZmxZk5sidEeipU4GEw@mail.gmail.com \
    --to=proljc@gmail.com \
    --cc=afaerber@suse.de \
    --cc=elta.era@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).