| Submitter | Laurent Vivier |
|---|---|
| Date | May 23, 2010, 10:35 p.m. |
| Message ID | <1274654120-32062-1-git-send-email-Laurent@Vivier.EU> |
| Download | mbox | patch |
| Permalink | /patch/53362/ |
| State | New |
| Headers | show |
Comments
On Mon, May 24, 2010 at 12:35:20AM +0200, Laurent Vivier wrote: > From: Laurent Vivier <laurent@vivier.eu> > > As it is done for qemu-system with "-cpu ?", when cpu_list_id() is missing > for a target, call cpu_list() instead. > > Signed-off-by: Laurent Vivier <laurent@vivier.eu> > --- > linux-user/main.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) Thanks, applied. > diff --git a/linux-user/main.c b/linux-user/main.c > index b240f29..f6fd6e3 100644 > --- a/linux-user/main.c > +++ b/linux-user/main.c > @@ -2797,6 +2797,8 @@ int main(int argc, char **argv, char **envp) > /* XXX: implement xxx_cpu_list for targets that still miss it */ > #if defined(cpu_list_id) > cpu_list_id(stdout, &fprintf, ""); > +#elif defined(cpu_list) > + cpu_list(stdout, &fprintf); /* deprecated */ > #endif > exit(1); > } > -- > 1.7.0.4 > > >
Patch
diff --git a/linux-user/main.c b/linux-user/main.c index b240f29..f6fd6e3 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -2797,6 +2797,8 @@ int main(int argc, char **argv, char **envp) /* XXX: implement xxx_cpu_list for targets that still miss it */ #if defined(cpu_list_id) cpu_list_id(stdout, &fprintf, ""); +#elif defined(cpu_list) + cpu_list(stdout, &fprintf); /* deprecated */ #endif exit(1); }