<html>
<body>
  <div id="body" style="background-color:#ffffff;" >
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head" style="border-bottom-width:1px;border-bottom-style:solid;" ><td class="headtd" style="padding:0;padding-top:.2em;" colspan="4">Commit in <b><tt>lxdream/src</tt></b></td></tr>
<tr><td><tt><a href="#file1">main.c</a></tt></td><td id="added" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ddffdd;" align="right">+9</td><td id="removed" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ffdddd;" align="right">-2</td><td class="headtd2" style="padding-left:.3em;padding-right:.3em;" nowrap="nowrap">425d9de21c78 -> 0a306d645e2c</td></tr>
</table>
<pre class="comment" style="white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;padding:4px;border:1px dashed #000000;background-color:#ffffdd;" >
Add the (hidden) -P option to turn on block profiling
</pre>
<hr /><a name="file1" /><div class="file" style="border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;" >
<span class="pathname" style="font-family:monospace; float:right;" >lxdream/src</span><br />
<div class="fileheader" style="margin-bottom:.5em;" ><big><b>main.c</b></big> <small id="info" style="color: #888888;" >425d9de21c78 -> 0a306d645e2c</small></div>
<pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >--- lxdream/src/main.c
+++ lxdream/src/main.c
@@ -45,7 +45,7 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > 
 #define GL_INFO_OPT 1
 
</pre><pre id="removed" class="diff" style="margin:0; background-color:#ffdddd;" >-char *option_list = "a:A:bc:e:dfg:G:hHl:m:npt:T:uvV:xX?";
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+char *option_list = "a:A:bc:e:dfg:G:hHl:m:np<span id="addedchars" style="background-color:#99ff99;font-weight:bolder;" >P</span>t:T:uvV:xX?";
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > struct option longopts[] = {
         { "aica", required_argument, NULL, 'a' },
         { "audio", required_argument, NULL, 'A' },
</pre><pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >@@ -67,6 +67,7 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >         { "unsafe", no_argument, NULL, 'u' },
         { "video", no_argument, NULL, 'V' },
         { "version", no_argument, NULL, 'v' }, 
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+        { "sh4-profile-blocks", no_argument, NULL, 'P' },
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >         { NULL, 0, 0, 0 } };
 char *aica_program = NULL;
 char *display_driver_name = NULL;
</pre><pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >@@ -131,7 +132,7 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >     int opt;
     double t;
     gboolean display_ok, have_disc = FALSE, have_save = FALSE, have_exec = FALSE;
</pre><pre id="removed" class="diff" style="margin:0; background-color:#ffdddd;" >-    gboolean print_glinfo = FALSE;
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+    gboolean print_glinfo = FALSE, sh4_profile_blocks = FALSE;
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >     uint32_t time_secs, time_nanos;
     const char *exec_name = NULL;
 
</pre><pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >@@ -192,6 +193,9 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >             start_immediately = TRUE;
             no_start = FALSE;
             break;
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+        case 'P':
+            sh4_profile_blocks = TRUE;
+            break;
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >         case 't': /* Time limit + auto quit */
             t = strtod(optarg, NULL);
             time_secs = (uint32_t)t;
</pre><pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >@@ -355,6 +359,9 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >     }
 
     sh4_set_core( sh4_core );
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+    if( sh4_core == SH4_TRANSLATE ) {
+        sh4_translate_set_profile_blocks( sh4_profile_blocks );
+    }
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > 
     /* If requested, start the gdb server immediately before we go into the main
      * loop.
</pre></div>
<center><small>Chaos Theory</small></center>
</div></body></html>