aboutsummaryrefslogtreecommitdiff
path: root/emulators/gxemul/files/patch-src-machines-machine_evbmips.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/gxemul/files/patch-src-machines-machine_evbmips.c')
-rw-r--r--emulators/gxemul/files/patch-src-machines-machine_evbmips.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/emulators/gxemul/files/patch-src-machines-machine_evbmips.c b/emulators/gxemul/files/patch-src-machines-machine_evbmips.c
new file mode 100644
index 000000000000..6fc61effca98
--- /dev/null
+++ b/emulators/gxemul/files/patch-src-machines-machine_evbmips.c
@@ -0,0 +1,14 @@
+--- src/machines/machine_evbmips.c.orig Mon Jul 17 17:33:05 2006
++++ src/machines/machine_evbmips.c Mon Jul 17 17:35:04 2006
+@@ -176,6 +176,11 @@
+ snprintf(tmps, sizeof(tmps), "0x%08x", machine->physical_ram_in_mb<<20);
+ add_environment_string_dual(cpu, &env, &tmpptr, "memsize", tmps);
+
++#if 1 /* XXX: FreeBSD wants this to figure out the clock speed. */
++ snprintf(tmps, sizeof(tmps), "%d", machine->emulated_hz/1000);
++ add_environment_string_dual(cpu, &env, &tmpptr, "khz", tmps);
++#endif
++
+ add_environment_string_dual(cpu, &env, &tmpptr, "yamonrev", "02.06");
+
+ /* End of env: */