target-openrisc: Add typename for CPU models.
PATCH 1/1 target-openrisc: Add typename for CPU models.
Make target-openrisc running OK by add typename in openrisc_cpu_class_by_name().
--- target-openrisc/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
target-openrisc/cpu.c +3 -1
@@ -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 ;
Signature · 1 line
1.8.1.2
Hi Dongxue,
Quoted 2 lines · Dongxue Zhang
Make target-openrisc running OK by add typename in
openrisc_cpu_class_by_name().
Quoted 14 lines
Signed-off-by Dongxue Zhang <[email protected]>--- target-openrisc/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)target-openrisc/cpu.c +0
-0@@ -96,12 +96,14 @@ static void openrisc_cpu_initfn(Object *obj)static ObjectClass *openrisc_cpu_class_by_name (const char *cpu_model) {ObjectClass *oc;
target-openrisc/cpu.c static void openrisc_cpu_initfn(Object *obj) · line 107
Quoted 10 lines
target-openrisc/cpu.c +3
-1+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.
Quoted 5 lines
target-openrisc/cpu.c +0
-1--1.8.1.2
Regards,
Jia
Hi Jia,
Am 02.07.2013 11:29, schrieb Jia Liu:
Quoted 31 lines
Quoted 2 lines · On Tue, Jul 2, 2013 at 5:11 PM, Dongxue Zhang <[email protected]…
Make target-openrisc running OK by add typename in
openrisc_cpu_class_by_name().Quoted 2 lines
Signed-off-by Dongxue Zhang <[email protected]<mailto:[email protected]>>
Quoted 12 lines
--- target-openrisc/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)target-openrisc/cpu.c +0
-0@@ -96,12 +96,14 @@ static void openrisc_cpu_initfn(Object *obj)static ObjectClass *openrisc_cpu_class_by_name (const char *cpu_model) {ObjectClass *oc;target-openrisc/cpu.c static void openrisc_cpu_initfn(Object *obj) · line 107
Quoted 10 lines
target-openrisc/cpu.c +3
-1+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) ||
Quoted 4 lines
target-openrisc/cpu.c static void openrisc_cpu_initfn(Object *obj) · line 109
Quoted 2 lines
target-openrisc/cpu.c +0
-0object_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.
If you could upload a Linux test image somewhere that may help avoid breakages in the future.
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?
Here's a pointer to the latest refactoring that partially affects or32:
http://lists.gnu.org/archive/html/qemu-devel/2013-06/msg05354.html
Regards,
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Hi Andreas,
Quoted 35 lines · Andreas Färber
Hi Jia,
Am 02.07.2013 11:29, schrieb Jia Liu:
Quoted 31 lines
Quoted 2 lines · On Tue, Jul 2, 2013 at 5:11 PM, Dongxue Zhang <[email protected]…
Make target-openrisc running OK by add typename in
openrisc_cpu_class_by_name().Quoted 2 lines
Signed-off-by Dongxue Zhang <[email protected]<mailto:[email protected]>>
Quoted 12 lines
--- target-openrisc/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)target-openrisc/cpu.c +0
-0@@ -96,12 +96,14 @@ static void openrisc_cpu_initfn(Object *obj)static ObjectClass *openrisc_cpu_class_by_name (const char *cpu_model) {ObjectClass *oc;target-openrisc/cpu.c static void openrisc_cpu_initfn(Object *obj) · line 107
Quoted 10 lines
target-openrisc/cpu.c +3
-1+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) ||
Quoted 7 lines
Quoted 4 lines
target-openrisc/cpu.c static void openrisc_cpu_initfn(Object *obj) · line 109
Quoted 2 lines
target-openrisc/cpu.c +0
-0object_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.
Quoted 3 lines
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?
Quoted 4 lines
Also we reported that there was no maintainer for target-openrisc/ in
MAINTAINERSfile, 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.
Quoted 3 lines
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.
Quoted 7 lines
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
Andreas Färber
Reviewed-by Your NameHi,
Am 02.07.2013 14:30, schrieb Jia Liu:
Quoted 4 lines
Quoted 2 lines · On Tue, Jul 2, 2013 at 6:18 PM, Andreas Färber <[email protected]…
Am 02.07.2013 11:29, schrieb Jia Liu:
Quoted 1 line
On Tue, Jul 2, 2013 at 5:11 PM, Dongxue Zhang <[email protected]
Quoted 39 lines
<mailto:[email protected]>
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines · <mailto:[email protected] <mailto:[email protected]>>> wrote:
Make target-openrisc running OK by add typename in
openrisc_cpu_class_by_name().Quoted 2 lines
Signed-off-by Dongxue Zhang <[email protected]<mailto:[email protected]>
Quoted 31 lines
Quoted 24 lines
<mailto:[email protected] <mailto:[email protected]>>>
Quoted 12 lines
--- target-openrisc/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)target-openrisc/cpu.c +0
-0@@ -96,12 +96,14 @@ static void openrisc_cpu_initfn(Object *obj)static ObjectClass *openrisc_cpu_class_by_name (const char *cpu_model) {ObjectClass *oc;target-openrisc/cpu.c static void openrisc_cpu_initfn(Object *obj) · line 107
Quoted 10 lines
target-openrisc/cpu.c +3
-1+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) ||Quoted 4 lines
target-openrisc/cpu.c static void openrisc_cpu_initfn(Object *obj) · line 109
Quoted 2 lines
target-openrisc/cpu.c +0
-0object_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.
Thanks, queued on qom-cpu (with extended commit message):
https://github.com/afaerber/qemu-cpu/commits/qom-cpu
CC'ing qemu-stable. I also note that my mistake made it possible to use -cpu or1200-or32-cpu or -cpu any-or32-cpu instead of -cpu or1200 or -cpu any, which this patch reverts. I believe that to be intentional. Otherwise we can extend the patch to allow both.
Quoted 2 lines
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.
You can see how it's used on the list almost every day. ;)
patch to be sensible, functionally correct and containing no style issues.
Tested-by should be obvious. Based on your email I've added that one for now.
Acked-by is short for acknowledged and, depending on interpretation, means either that the change/concept looks okay or that it has been reviewed and compile-tested. Anthony prefers to get Reviewed-bys.
Quoted 5 lines
Quoted 2 lines
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?
We can't. For one the Wiki has an upload file size limit, for another hosting GPL'ed binaries requires to either host or supply on request the corresponding source code (but IANAL).
Regards,
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Hi Andreas,
Quoted 21 lines · Andreas Färber
Hi,
Am 02.07.2013 14:30, schrieb Jia Liu:
Quoted 17 lines
Quoted 2 lines · On Tue, Jul 2, 2013 at 6:18 PM, Andreas Färber <[email protected]…
Am 02.07.2013 11:29, schrieb Jia Liu:
Quoted 1 line
On Tue, Jul 2, 2013 at 5:11 PM, Dongxue Zhang <[email protected]
<mailto:[email protected]>
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines · <mailto:[email protected] <mailto:[email protected]>>> wrote:
Make target-openrisc running OK by add typename in
openrisc_cpu_class_by_name().Quoted 2 lines
Signed-off-by Dongxue Zhang <[email protected]<mailto:[email protected]>
Quoted 5 lines
Quoted 5 lines
<mailto:[email protected] <mailto:[email protected]>>>
Quoted 4 lines
--- target-openrisc/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
target-openrisc/cpu.c static void openrisc_cpu_initfn(Object *obj) · line 96
Quoted 6 lines
target-openrisc/cpu.c +0
-0@@ -96,12 +96,14 @@ static void openrisc_cpu_initfn(Object *obj) static ObjectClass *openrisc_cpu_class_by_name(const char
*cpu_model)
Quoted 21 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
target-openrisc/cpu.c +3
-1{ 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,Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
TYPE_OPENRISC_CPU) ||target-openrisc/cpu.c static void openrisc_cpu_initfn(Object *obj) · line 109
Quoted 2 lines
target-openrisc/cpu.c +0
-0object_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.
Quoted 7 lines
Thanks, queued on qom-cpu (with extended commit message):
https://github.com/afaerber/qemu-cpu/commits/qom-cpuCC'ing qemu-stable. I also note that my mistake made it possible to use -cpu or1200-or32-cpu or -cpu any-or32-cpu instead of -cpu or1200 or -cpu any, which this patch reverts. I believe that to be intentional. Otherwise we can extend the patch to allow both.
Thanks, we will working on this.
Quoted 27 lines
Quoted 4 lines
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.
You can see how it's used on the list almost every day. ;)
patch to be sensible, functionally correct and containing no style issues.
Tested-by should be obvious. Based on your email I've added that one for now.
Acked-by is short for acknowledged and, depending on interpretation, means either that the change/concept looks okay or that it has been reviewed and compile-tested. Anthony prefers to get Reviewed-bys.
Quoted 5 lines
Quoted 2 lines
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?
We can't. For one the Wiki has an upload file size limit, for another hosting GPL'ed binaries requires to either host or supply on request the corresponding source code (but IANAL).
Quoted 6 lines
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
Hi Andreas,
Quoted 38 lines · Andreas Färber
Hi Jia,
Am 02.07.2013 11:29, schrieb Jia Liu:
Quoted 34 lines
Quoted 2 lines · On Tue, Jul 2, 2013 at 5:11 PM, Dongxue Zhang <[email protected]…
Make target-openrisc running OK by add typename in
openrisc_cpu_class_by_name().Quoted 2 lines
Signed-off-by Dongxue Zhang <[email protected]<mailto:[email protected]>>
Quoted 12 lines
--- target-openrisc/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)target-openrisc/cpu.c +0
-0@@ -96,12 +96,14 @@ static void openrisc_cpu_initfn(Object *obj)static ObjectClass *openrisc_cpu_class_by_name (const char *cpu_model) {ObjectClass *oc;target-openrisc/cpu.c static void openrisc_cpu_initfn(Object *obj) · line 107
Quoted 10 lines
target-openrisc/cpu.c +3
-1+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) ||Quoted 2 lines
target-openrisc/cpu.c +0
-0object_class_is_abstract(oc))) {return NULL ;
Quoted 7 lines
Quoted 1 line
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.
If you could upload a Linux test image somewhere that may help avoid breakages in the future.
I've upload a Linux test image to my Google Drive.
https://docs.google.com/file/d/0BxeTrz3x0CBLbTNmU0lrV1Y0V0U/edit
Quoted 8 lines
Also we reported that there was no maintainer for target-openrisc/ in
MAINTAINERSfile, do you want to put yourself there so that you are CC'ed on patches?Here's a pointer to the latest refactoring that partially affects or32:
http://lists.gnu.org/archive/html/qemu-devel/2013-06/msg05354.html
Quoted 6 lines
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