From 95efd11c121ed5ba9677f9fbaf0cefa8e52cb02e Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Wed, 24 Dec 2008 20:26:14 +0000 Subject: Add support for -prom-env command line options git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6129 c046a42c-6fe2-441c-8c8c-71466251a162 --- vl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vl.c') diff --git a/vl.c b/vl.c index a1a9cf4014..07740f51e4 100644 --- a/vl.c +++ b/vl.c @@ -231,7 +231,7 @@ int old_param = 0; #endif const char *qemu_name; int alt_grab = 0; -#ifdef TARGET_SPARC +#if defined(TARGET_SPARC) || defined(TARGET_PPC) unsigned int nb_prom_envs = 0; const char *prom_envs[MAX_PROM_ENVS]; #endif @@ -4185,7 +4185,7 @@ static const QEMUOption qemu_options[] = { { "semihosting", 0, QEMU_OPTION_semihosting }, #endif { "name", HAS_ARG, QEMU_OPTION_name }, -#if defined(TARGET_SPARC) +#if defined(TARGET_SPARC) || defined(TARGET_PPC) { "prom-env", HAS_ARG, QEMU_OPTION_prom_env }, #endif #if defined(TARGET_ARM) @@ -5049,7 +5049,7 @@ int main(int argc, char **argv, char **envp) case QEMU_OPTION_name: qemu_name = optarg; break; -#ifdef TARGET_SPARC +#if defined(TARGET_SPARC) || defined(TARGET_PPC) case QEMU_OPTION_prom_env: if (nb_prom_envs >= MAX_PROM_ENVS) { fprintf(stderr, "Too many prom variables\n"); -- cgit v1.2.3