mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
Add an interim patch that allows FreeBSD to learn the clock frequency
of the emulated MIPS32 processor from yamon's environment. Submitted by: bms
This commit is contained in:
parent
8a6df95308
commit
1284cd2c01
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=171881
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= gxemul
|
||||
PORTVERSION= 0.4.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= emulators
|
||||
MASTER_SITES= http://gavare.se/gxemul/src/ \
|
||||
${MASTER_SITE_LOCAL}
|
||||
|
14
emulators/gxemul/files/patch-src-machines-machine_evbmips.c
Normal file
14
emulators/gxemul/files/patch-src-machines-machine_evbmips.c
Normal file
@ -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: */
|
Loading…
Reference in New Issue
Block a user