diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2006-09-02 23:31:21 +0800 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2006-09-02 23:31:21 +0800 |
commit | 255dd23c1730b9ce0664cdac19bede04857b053c (patch) | |
tree | fb878f3e95884ece309b6a1f0f7bce31614dcdd1 /emulators | |
parent | 0e4a3d48a6f4c9291e0ef57a7b9656126bde5dec (diff) | |
download | freebsd-ports-gnome-255dd23c1730b9ce0664cdac19bede04857b053c.tar.gz freebsd-ports-gnome-255dd23c1730b9ce0664cdac19bede04857b053c.tar.zst freebsd-ports-gnome-255dd23c1730b9ce0664cdac19bede04857b053c.zip |
Add an interim patch that allows FreeBSD to learn the clock frequency
of the emulated MIPS32 processor from yamon's environment.
Submitted by: bms
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/gxemul/Makefile | 1 | ||||
-rw-r--r-- | emulators/gxemul/files/patch-src-machines-machine_evbmips.c | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/emulators/gxemul/Makefile b/emulators/gxemul/Makefile index 06552d82dbd3..51ab16e0c9bc 100644 --- a/emulators/gxemul/Makefile +++ b/emulators/gxemul/Makefile @@ -7,6 +7,7 @@ PORTNAME= gxemul PORTVERSION= 0.4.2 +PORTREVISION= 1 CATEGORIES= emulators MASTER_SITES= http://gavare.se/gxemul/src/ \ ${MASTER_SITE_LOCAL} 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: */ |