present. struct termios may lack c_ispeed, c_ospeed members.
/* cpu.c - this holds the main loop for the emulator, plus generic
* functions to deal with exceptional instructions and events
*
- * $Revision: 1.25 $
- * $Date: 2002/06/10 11:41:40 $
+ * $Revision: 1.26 $
+ * $Date: 2008/05/15 07:52:45 $
*/
#include "defines.h"
#include <unistd.h>
regs[0], regs[1], regs[2], regs[3],
regs[4], regs[5], regs[6]));
TrapDebug((dbg_file, "NZVC1 %d%d%d%d\n",CC_N,CC_Z,CC_V,CC_C));
+ fflush(dbg_file);
}
regs[PC] += 2; itab[ir >> 6] ();
if ((Sighead!=NULL) && (sigrunner!=NULL)) (void) (*sigrunner)();
/* fp.c - PDP-11 floating point operations
*
- * $Revision: 2.23 $
- * $Date: 1999/12/30 02:11:16 $
+ * $Revision: 2.24 $
+ * $Date: 2008/05/15 07:52:45 $
*/
/* The floating-point emulation code here is just enough to allow
*/
#include "defines.h"
#include <math.h>
+#ifdef HAVE_POWF
float powf(float x, float y); /* FreeBSD 3.X no longer defines this */
+#else
+# define powf(x,y) (float)pow((double)x, (double)y)
+#endif
#define XUL 170141163178059628080016879768632819712.0 /* Biggest float */
/* v7trap.c - Deal with V7 trap instructions. V5 and V6 syscalls are also
* done here, because the syscall interface is nearly the same as V7.
*
- * $Revision: 1.47 $
- * $Date: 2002/06/10 11:43:24 $
+ * $Revision: 1.48 $
+ * $Date: 2008/05/15 07:52:45 $
*/
#include "defines.h"
#include <sys/stat.h>
return i;
CLR_CC_C();
sgtb = (struct tr_sgttyb *) & dspace[ucnt];
- sgtb->sg_ispeed = tios.c_ispeed;
- sgtb->sg_ospeed = tios.c_ospeed;
+ sgtb->sg_ispeed = cfgetispeed(&tios); /* tios.c_ispeed; --gray */
+ sgtb->sg_ospeed = cfgetospeed(&tios); /* tios.c_ospeed; --gray */
sgtb->sg_erase = tios.c_cc[VERASE];
sgtb->sg_kill = tios.c_cc[VKILL];
sgtb->sg_flags = 0;
if (ucnt != 0) {
sgtb = (struct tr_sgttyb *) & dspace[ucnt];
- tios.c_ispeed = sgtb->sg_ispeed;
- tios.c_ospeed = sgtb->sg_ospeed;
+ cfsetispeed(&tios, sgtb->sg_ispeed);
+ cfsetospeed(&tios, sgtb->sg_ospeed);
tios.c_cc[VERASE] = sgtb->sg_erase;
tios.c_cc[VKILL] = sgtb->sg_kill;
if (sgtb->sg_flags & TR_XTABS)