aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-03-21 17:06:25 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-03-21 17:06:25 +0000
commitf193c7979c2f7e4e021453689b5dd9c8abdcbbc4 (patch)
tree476de8558dbbfda14b4e96ce22eb511835f4114a /vl.c
parent3035f7ff83c9f072c0b9dc7a95789dba613b8750 (diff)
downloadqemu-f193c7979c2f7e4e021453689b5dd9c8abdcbbc4.zip
qemu-f193c7979c2f7e4e021453689b5dd9c8abdcbbc4.tar.gz
qemu-f193c7979c2f7e4e021453689b5dd9c8abdcbbc4.tar.bz2
do not depend on thunk.h - more log items
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@675 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/vl.c b/vl.c
index f358dbe..c3204eb 100644
--- a/vl.c
+++ b/vl.c
@@ -47,7 +47,6 @@
#include <linux/if_tun.h>
#include "disas.h"
-#include "thunk.h"
#include "vl.h"
@@ -801,7 +800,7 @@ void help(void)
"Debug/Expert options:\n"
"-s wait gdb connection to port %d\n"
"-p port change gdb connection port\n"
- "-d output log to %s\n"
+ "-d item1,... output log to %s (use -d ? for a list of log items)\n"
"-hdachs c,h,s force hard disk 0 geometry (usually qemu can guess it)\n"
"-L path set the directory for the BIOS and VGA BIOS\n"
#ifdef USE_CODE_COPY
@@ -916,7 +915,7 @@ int main(int argc, char **argv)
}
for(;;) {
- c = getopt_long_only(argc, argv, "hm:dn:sp:L:", long_options, &long_index);
+ c = getopt_long_only(argc, argv, "hm:d:n:sp:L:", long_options, &long_index);
if (c == -1)
break;
switch(c) {
@@ -1037,7 +1036,20 @@ int main(int argc, char **argv)
}
break;
case 'd':
- cpu_set_log(CPU_LOG_ALL);
+ {
+ int mask;
+ CPULogItem *item;
+
+ mask = cpu_str_to_log_mask(optarg);
+ if (!mask) {
+ printf("Log items (comma separated):\n");
+ for(item = cpu_log_items; item->mask != 0; item++) {
+ printf("%-10s %s\n", item->name, item->help);
+ }
+ exit(1);
+ }
+ cpu_set_log(mask);
+ }
break;
case 'n':
pstrcpy(network_script, sizeof(network_script), optarg);