Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


fixed timing bug
Jack Lange [Mon, 16 Feb 2009 17:26:20 +0000 (11:26 -0600)]
palacios/src/devices/8254.c

index fa51251..f0c063b 100644 (file)
@@ -255,7 +255,7 @@ static void pit_update_time(ullong_t cpu_cycles, ullong_t cpu_freq, void * priva
     if (cpu_cycles > state->pit_reload) {
       // how many full oscillations
       
-      // PrintError("cpu_cycles = %p, reload = %p...\n", 
+      //PrintError("cpu_cycles = %p, reload = %p...\n", 
       //        (void *)(addr_t)cpu_cycles, 
       //        (void *)(addr_t)state->pit_reload);
 
@@ -268,8 +268,8 @@ static void pit_update_time(ullong_t cpu_cycles, ullong_t cpu_freq, void * priva
 
       
 #ifdef __V3_64BIT__
-      cpu_cycles = tmp_cycles / state->pit_reload;
-      tmp_cycles = tmp_cycles % state->pit_reload;
+      cpu_cycles = tmp_cycles % state->pit_reload;
+      tmp_cycles = tmp_cycles / state->pit_reload;
 #else
       cpu_cycles = do_divll(tmp_cycles, state->pit_reload);
 #endif