Search
lxdream.org :: lxdream/src/main.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 562:e598411b640b
prev561:533f6b478071
next564:dc7b5ffb0535
author nkeynes
date Tue Jan 01 05:48:06 2008 +0000 (11 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Add configure and command-line parameters to perform IO tracing
file annotate diff log raw
1.1 --- a/src/main.c Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/src/main.c Tue Jan 01 05:48:06 2008 +0000
1.3 @@ -34,13 +34,14 @@
1.4
1.5 #define S3M_PLAYER "s3mplay.bin"
1.6
1.7 -char *option_list = "a:m:s:A:V:v:puhbd:c:t:xD";
1.8 +char *option_list = "a:m:s:A:V:v:puhbd:c:t:T:xD";
1.9 struct option longopts[1] = { { NULL, 0, 0, 0 } };
1.10 char *aica_program = NULL;
1.11 char *s3m_file = NULL;
1.12 const char *disc_file = NULL;
1.13 char *display_driver_name = NULL;
1.14 char *audio_driver_name = NULL;
1.15 +char *trace_regions = NULL;
1.16 gboolean start_immediately = FALSE;
1.17 gboolean headless = FALSE;
1.18 gboolean without_bios = FALSE;
1.19 @@ -109,6 +110,9 @@
1.20 time_secs = (uint32_t)t;
1.21 time_nanos = (int)((t - time_secs) * 1000000000);
1.22 break;
1.23 + case 'T': /* trace regions */
1.24 + trace_regions = optarg;
1.25 + break;
1.26 case 'v': /* Log verbosity */
1.27 if( !set_global_log_level(optarg) ) {
1.28 ERROR( "Unrecognized log level '%s'", optarg );
1.29 @@ -131,6 +135,7 @@
1.30 mem_load_block( s3m_file, 0x00810000, 2048*1024 - 0x10000 );
1.31 }
1.32 }
1.33 + mem_set_trace( trace_regions, TRUE );
1.34
1.35 if( without_bios ) {
1.36 bios_install();
.