Commit graph

91 commits

Author SHA1 Message Date
Mark Pizzolato
ddb10425e7 Reworked all asynch queues to always link using the unit a_next field instead of the next field. 2013-05-08 09:34:53 -07:00
Mark Pizzolato
6cf54e8341 Fixes for stable operation with SIM_ASYNCH_CLOCKS defined 2013-05-07 11:22:29 -07:00
Mark Pizzolato
f8da94e001 Fixed compile and operational behaviors when running with SIM_ASYNCH_CLOCKS enabled 2013-05-04 12:22:50 -07:00
Mark Pizzolato
cc8c79eb0f Added a more unique naming paradigm for remote console temporary log files to avoid potential collisions when multiple simulators may be running concurrently 2013-05-02 07:46:07 -07:00
Mark Pizzolato
27283179d9 Missing pieces for change to add tmxr_linemsgf. 2013-04-24 09:01:45 -07:00
Mark Pizzolato
d71e53feb0 Added support for the DIR (LS) command on VMS hosts 2013-04-24 06:04:24 -07:00
Mark Pizzolato
9844ba6696 Added DIR (LS) command to list the files in a directory. This command is usable in Remote Console sessions. 2013-04-23 12:39:03 -07:00
Mark Pizzolato
99c13051e6 Merge remote-tracking branch 'origin/master' into Operator-Commands 2013-04-19 14:23:00 -07:00
Mark Pizzolato
b886fb23b6 Add Remote Console support 2013-04-19 13:54:19 -07:00
Mark Pizzolato
4bd72e666c Compiler and static analyzer fixes from Peter Schorn. 2013-04-13 16:59:54 -07:00
Mark Pizzolato
34ad155854 Compiler suggested cleanups 2013-04-13 05:25:25 -07:00
Mark Pizzolato
5bba4daca4 Added support for MTAB entries to have values which contain quoted strings (which can therefore contain spaces and/or other characters which might normally be delimiters. Need suggested by Michael Mondy 2013-04-12 11:46:30 -07:00
Mark Pizzolato
c93658f241 Avoid bug in the HP PA-RISC C compiler. (from Mikulas Patocka)
In 32-bit mode, the compiler truncates constants to 32-bit.
We need LL suffix to avoid the truncation.

This behavior is contrary to the C 99 standard which defines
that constants that do not fit into long and unsigned long shall
have long long type.
2013-04-05 12:34:37 -07:00
Mark Pizzolato
a262dd9c14 Compiler indicated cleanups 2013-03-19 01:11:22 -07:00
Mark Pizzolato
2e5b0d54c6 Generalized the sim_disk layer to support large file disk devices (simh, VHD and RAW formats) with out requiring USE_ADDR64, and enhanced the pdp11_rq device to use this capability. 2013-03-17 12:02:43 -07:00
Mark Pizzolato
d5ca542102 Changed use of compile #defines which start with a _ character to not do this since defined symbols starting with _ are reserved to local compiler/runtime implementations in the C language. This addresses issue #32 2013-03-12 11:07:58 -07:00
Mark Pizzolato
eb101e3881 HP-UX port supplied by Mikulas Patocka 2013-03-05 13:29:38 -08:00
Mark Pizzolato
c5fe058a62 Renamed scp's recently created macro MMASK to MODMASK to avoid name collisions with MMASK macros used in some simulators 2013-02-02 16:44:44 -08:00
Mark Pizzolato
ecf913f9a5 Reworked the MTAB flags to force Extended mode when any extended flag is set and to then handle any references properly 2013-02-02 12:33:17 -08:00
Mark Pizzolato
bb8be22216 Added provisions for device modifiers to to have descriptive help
Changed SHOW dev SHOW to use the new HELP dev SHOW and SHOW dev MODIFIER to HELP dev SET.
2013-01-31 16:05:21 -08:00
Mark Pizzolato
cbe11147fc Created a way for devices to have a description presentation routine and if it is supplied for its output to be visible with a SHOW SYSTEM command. Provided device description routines for devices used in the VAX simulators 2013-01-25 12:04:25 -08:00
Mark Pizzolato
ab25ad54e8 Fix potential for crash if tmxr_set_get_modem_bits is called without the multiplexer device being attached 2013-01-24 12:09:40 -08:00
Mark Pizzolato
29cf2a45a8 Added support for register display with bit field definitions decoded 2013-01-24 05:52:50 -08:00
Mark Pizzolato
038c5d27fb Enhanced debug output to mark debug info from non main threads with a + at the beginning of the debug message 2013-01-22 20:32:21 -08:00
Mark Pizzolato
83c1d80194 Merge branch 'master' into AsyncTmxr
Conflicts merged and missing changes in new modules added as needed for clock co-scheduling.
2013-01-21 16:52:42 -08:00
Mark Pizzolato
d46ebc7d49 Untangle circular include references between tmxr serial and sock include files. 2013-01-21 11:29:27 -08:00
Mark Pizzolato
4a5b7a78c5 Remove the UNIT_RAW flag and deprecate the UNIT_TEXT flag (made the value 0). 2013-01-19 10:59:40 -08:00
Mark Pizzolato
19c4ccbf10 Added dynflags to the unit structure to track dynamic flags used by scp & libraries. This avoids expanding the set of unit flags and encroaching on the available user flags . 2013-01-18 09:46:13 -08:00
Mark Pizzolato
4f19d08869 Initial merge of Asynchronous Multiplexer and Asynchronous Clock support 2013-01-17 11:34:51 -08:00
Mark Pizzolato
99eb870891 Change broken asynchronous synchronization to use an a recursive mutex for sim_asynch_lock 2013-01-17 09:02:49 -08:00
Mark Pizzolato
3ce1ef2b33 Added an optional description field to register definitions and macros which can be used to populate it 2013-01-15 06:20:12 -08:00
Mark Pizzolato
448d9e52fc Added VAX860 to the descrip.mms and cleaned up the VMS compiler identified issues 2013-01-10 15:14:51 -08:00
Mark Pizzolato
7f57ce2c88 Added help context to pdp11_dz and pdp11_vh 2013-01-10 13:37:31 -08:00
Mark Pizzolato
bc816ae871 Fixed Asynchronous Event Queueing to work correctly when doing Lock based queueing 2013-01-10 09:53:40 -08:00
Mark Pizzolato
629de4dcc5 Build identified cleanups 2013-01-09 17:22:17 -08:00
Mark Pizzolato
784ae24324 - Fixed asynchronous i/o hangs introduced when asynchronous cancel support was added
- Added event debug support to scp and the vax simulator
- Moved external declarations into include files related to modules which define them and removed random externs from modules which referenced them
- Fixed typos in sim_ether
- Fixed sim_disk and sim_tape to properly manage asynchronous threads on an i/o flush
2013-01-09 17:02:58 -08:00
Mark Pizzolato
7b6f7a9871 Set device flags indicating DEV_DISK, DEV_TAPE, DEV_MUX and DEV_ETHER for all simulator devices which use the sim_disk, sim_tape, sim_tmxr, and sim_ether libraries 2013-01-07 12:47:24 -08:00
Mark Pizzolato
faa794e9da Documenting revised DEVICE structure 2013-01-03 09:19:21 -08:00
Mark Pizzolato
ba0f331fa5 Added framework to support per device help commands 2012-12-30 13:12:15 -08:00
Mark Pizzolato
9e421ada27 Cleanup compiler warning messages when building with MinGW 2012-12-20 13:51:54 -08:00
Mark Pizzolato
50cf91d441 Merge branch 'SerialMux' and compiler suggested cleanup 2012-12-18 09:52:14 -08:00
Mark Pizzolato
b466bdc9c6 Compiler warning cleanup 2012-12-13 13:41:57 -08:00
Mark Pizzolato
2b5ceae2be Added missing sim_cancel support for device simulation code using the sim_disk and sim_tape libraries and doing asynchronous I/O if asynchronous I/O is active 2012-12-12 10:58:19 -08:00
Mark Pizzolato
72ca9de180 Clang compiler cleanup for new sim_debug_bits 2012-12-06 08:15:14 -08:00
Mark Pizzolato
2c1d2b9a88 Fixed minor sim_debug_bits issues. 2012-12-05 20:47:34 -08:00
Mark Pizzolato
bcf0e8b19c Generalized sim_debug_u16 into sim_debug_bits and added support to display bit fields of variable size as well as bit states. 2012-12-04 09:32:40 -08:00
Mark Pizzolato
7c7df669ad Asynchronous Support
scp.c, scp.h
	- added sim_uname (Unit Name) API to simplify places which might want to display it (mostly debug messages).
	- added support for clock co-scheduling
	- added debugging to trace event queue activities

    sim_defs.h
	- added support for clock co-scheduling
	- added support for sim_uname (Thread local storage macro)
	- added support for debugging to trace event queue activities
	- simplified debug code by using sim_uname
	- fixed support macro for sim_is_active when asynch timers are in use

   sim_rev.h
	- fixed nested comments

    sim_tmxr.c, sim_tmxr.h
	- added support for clock co-scheduling
	- simplified debug code by using sim_uname
	- added support for devices which poll for output on different units

    sim_timer.c, sim_timer.h
	- added support for clock co-scheduling
	- fixed asynchronous clock calibration to smooth out calibration adjustments
	- simplified debug code by using sim_uname
	- added ability (when running with asynchronous support) to explicitly disable or enable asynchronous timer support.
	- changed sim_timer_inst_per_sec to return a double value since the result is always used in a double expression and integer overflow could occur under strange timing conditions

    vax/vax_stddev.c
	- converted from simulator specific clock co-scheduling to generic clock co-scheduling.

    vax/vax_cpu.c
	- added EVENT and ACTIVATE debug flag (SET CPU DEBUG=EVENT;ACTIVATE) support

    pdp11/pdp11_dz.c
	- converted from simulator specific clock co-scheduling to generic clock co-scheduling.

    pdp11/pdp11_vh.c
	- converted from simulator specific clock co-scheduling to generic clock co-scheduling.

    pdp11/pdp11_xq.c
	- converted from simulator specific clock co-scheduling to generic clock co-scheduling.
2012-11-12 15:33:35 -08:00
Mark Pizzolato
e7032c6bd5 Fixed regression recently introduced in string compare macro MATCH_CMD 2012-11-10 06:38:48 -08:00
Mark Pizzolato
fbb74de9b7 TMXR fixes to support Virtual Null Modem Connections
sim_tmxr.c
sim_defs.h
	- Fixed parsing issues with NOTELNET option.
	- Fixed line closing logic to drop buffered contents when line errors occur before closing link.
	- Fixed logic to allow bidirectional line connections (i.e. listen=1234;connect=ip:2345 on both sides of a a virtual null modem).
2012-11-08 15:45:43 -08:00
Mark Pizzolato
c9b31427b4 sim_defs.h - Make MATCH_CMD match at least one character instead of having an empty string match everything 2012-11-06 16:40:06 -08:00