From: "Joe Peterson (lavajoe)" <lavajoe@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/xtrs/files: xtrs-4.9c-r2-gentoo.patch
Date: Thu, 26 Jun 2008 23:50:49 +0000 [thread overview]
Message-ID: <E1KC1En-0002BQ-Fz@stork.gentoo.org> (raw)
lavajoe 08/06/26 23:50:49
Added: xtrs-4.9c-r2-gentoo.patch
Log:
Add upstream fix for kbwait; disable SIGIO; change default model back to 1
(Portage version: 2.1.4.4)
Revision Changes Path
1.1 app-emulation/xtrs/files/xtrs-4.9c-r2-gentoo.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xtrs/files/xtrs-4.9c-r2-gentoo.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xtrs/files/xtrs-4.9c-r2-gentoo.patch?rev=1.1&content-type=text/plain
Index: xtrs-4.9c-r2-gentoo.patch
===================================================================
diff -Nurp xtrs-4.9c-orig/ChangeLog xtrs-4.9c/ChangeLog
--- xtrs-4.9c-orig/ChangeLog 2006-05-14 18:55:28.000000000 -0600
+++ xtrs-4.9c/ChangeLog 2008-06-26 16:57:23.000000000 -0600
@@ -1,3 +1,13 @@
+4.9c-Gentoo -- Thu Jun 26 16:57:16 MDT 2008 -- Joe Peterson <joe@skyrush.com>
+
+* Patched for Gentoo ebuild
+ - Added assignment to volatile variable in the z80 delay loop
+ (allows near-actual speed emulation with optimization)
+ - Fixed keyboard wait issue that caused CPU spinning (i.e. max
+ CPU usage) after using F10 (reset), F7, F8, or F9.
+ - Disable SIGIO
+ - Added NEWDOS/80 system date/time auto-initialization
+
4.9c -- Sun May 14 17:54:25 PDT 2006 -- Tim Mann
* Fixed the new -e flag on import/cmd and export/cmd to actually
diff -Nurp xtrs-4.9c-orig/Makefile xtrs-4.9c/Makefile
--- xtrs-4.9c-orig/Makefile 2006-05-13 15:10:25.000000000 -0600
+++ xtrs-4.9c/Makefile 2008-06-26 16:48:15.000000000 -0600
@@ -143,7 +143,7 @@ z80code: $(Z80CODE)
include Makefile.local
CFLAGS = $(DEBUG) $(ENDIAN) $(DEFAULT_ROM) $(READLINE) $(DISKDIR) $(IFLAGS) \
- $(APPDEFAULTS) -DKBWAIT -DHAVE_SIGIO
+ $(APPDEFAULTS) -DKBWAIT
LIBS = $(XLIB) $(READLINELIBS) $(EXTRALIBS)
ZMACFLAGS = -h
diff -Nurp xtrs-4.9c-orig/trs_keyboard.c xtrs-4.9c/trs_keyboard.c
--- xtrs-4.9c-orig/trs_keyboard.c 2006-05-13 14:50:17.000000000 -0600
+++ xtrs-4.9c/trs_keyboard.c 2008-06-26 16:46:03.000000000 -0600
@@ -998,12 +998,12 @@ int trs_next_key(int wait)
if ((z80_state.nmi && !z80_state.nmi_seen) ||
(z80_state.irq && z80_state.iff1) ||
trs_event_scheduled() || key_immediate) {
+ key_immediate = 0;
rval = -1;
break;
}
trs_paused = 1;
- pause(); /* Wait for SIGALRM or SIGIO */
- key_immediate = 0;
+ pause(); /* Wait for SIGALRM */
trs_get_event(0);
}
return rval;
diff -Nurp xtrs-4.9c-orig/z80.c xtrs-4.9c/z80.c
--- xtrs-4.9c-orig/z80.c 2005-05-22 00:57:01.000000000 -0600
+++ xtrs-4.9c/z80.c 2008-06-26 16:44:32.000000000 -0600
@@ -3027,7 +3027,8 @@ int z80_run(int continuous)
#endif
/* Speed control */
if ((i = z80_state.delay)) {
- while (--i) /*nothing*/;
+ volatile int dummy;
+ while (--i) dummy = i;
}
instruction = mem_read(REG_PC++);
--
gentoo-commits@lists.gentoo.org mailing list
reply other threads:[~2008-06-26 23:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1KC1En-0002BQ-Fz@stork.gentoo.org \
--to=lavajoe@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox