diff -ru bochs-2.2.5.orig/bochs.h bochs-2.2.5/bochs.h
--- bochs-2.2.5.orig/bochs.h	2005-11-20 15:33:31.000000000 -0500
+++ bochs-2.2.5/bochs.h	2006-01-01 12:24:00.264298328 -0500
@@ -748,4 +748,6 @@
 
 #endif
 
+extern int jitter;
+
 #endif  /* BX_BOCHS_H */
Only in bochs-2.2.5: bochs.h.orig
diff -ru bochs-2.2.5.orig/iodev/pit82c54.cc bochs-2.2.5/iodev/pit82c54.cc
--- bochs-2.2.5.orig/iodev/pit82c54.cc	2004-06-19 11:20:13.000000000 -0400
+++ bochs-2.2.5/iodev/pit82c54.cc	2006-01-01 12:24:00.287294832 -0500
@@ -28,6 +28,7 @@
 
 #include "iodev.h"
 #include "pit82c54.h"
+#include <stdlib.h>
 #define LOG_THIS this->
 
 
@@ -356,7 +357,13 @@
       case 2:
 	if(thisctr.count_written) {
 	  if(thisctr.triggerGATE || thisctr.first_pass) {
-	    set_count(thisctr, thisctr.inlatch);
+            unsigned n = thisctr.inlatch;
+            if (jitter) {
+                n *= (double) rand() / RAND_MAX;
+                if (n < 5)
+                    n = 5;
+            }
+	    set_count(thisctr, n);
 	    thisctr.next_change_time=(thisctr.count_binary-1) & 0xFFFF;
 	    thisctr.null_count=0;
 	    if(thisctr.inlatch==1) {
Only in bochs-2.2.5/iodev: pit82c54.cc.orig
diff -ru bochs-2.2.5.orig/main.cc bochs-2.2.5/main.cc
--- bochs-2.2.5.orig/main.cc	2005-11-26 16:36:50.000000000 -0500
+++ bochs-2.2.5/main.cc	2006-01-01 12:25:56.838576344 -0500
@@ -53,6 +53,7 @@
 #undef Float64
 #endif
 
+int jitter;
 
 extern "C" {
 #include <signal.h>
@@ -450,6 +451,13 @@
     else if (!strcmp ("-q", argv[arg])) {
       SIM->get_param_enum(BXP_BOCHS_START)->set (BX_QUICK_START);
     }
+    else if (!strcmp ("-j", argv[arg])) {
+      if (++arg >= argc) BX_PANIC(("-j must be followed by a number"));
+      else {
+        jitter = 1;
+        srand (atoi (argv[arg]));
+      }
+    }
     else if (!strcmp ("-f", argv[arg])) {
       if (++arg >= argc) BX_PANIC(("-f must be followed by a filename"));
       else bochsrc_filename = argv[arg];
Only in bochs-2.2.5: main.cc.orig
Only in bochs-2.2.5: main.cc.rej
