Commit Graph

93 Commits

Author SHA1 Message Date
Fish (David B. Trout)
26a1f86d7f PTT facility enhancements:
1. Expand trace class to 64-bits.
2. Predefined convenience macros.
3. Expand trace message to 18 characters.
4. Use convenience macros where possible.

This commit is mostly in preparation for upcoming LCS debugging via PTT facility enhancements to help debug Issue #43 (which is a race condition and thus timing dependent, thus PTT debugging rather than logmsg debugging), but I tried to design it to make it easier for other modules (e.g. QETH) to also transition away from logmsg debugging to debugging via PTT facilty instead.
2015-01-24 06:16:05 -08:00
dasdman
080e86cd39 Enhanced CPU timer accuracy; CPU timer now based on CPU thread time instead of wall clock time. 2012-12-12 23:14:00 -08:00
Jan Jaeger
439bdbca92 Remove subversion $Id$ tag
Update copyright statement to 2012
2012-03-24 18:41:51 +11:00
Paul Gorlinsky
31c9a99803 Remove LOGMSG macro. Change LOGMSG to logmsg. Rename log_msg() to logmsg().
git-svn-id: file:///home/jj/hercules.svn/trunk@7688 956126f8-22a0-4046-8f4a-272fa8102e63
2011-08-12 23:28:17 +00:00
Paul Gorlinsky
2c2eaf37dc Restore code regressed by latest changes.
git-svn-id: file:///home/jj/hercules.svn/trunk@7678 956126f8-22a0-4046-8f4a-272fa8102e63
2011-08-09 02:00:07 +00:00
Jan Jaeger
032e72e79b Revert to lowercase logmsg()
git-svn-id: file:///home/jj/hercules.svn/trunk@7669 956126f8-22a0-4046-8f4a-272fa8102e63
2011-08-07 00:09:14 +00:00
Paul Gorlinsky
03a4560910 Update Copyright notices to 2011.
git-svn-id: file:///home/jj/hercules.svn/trunk@7593 956126f8-22a0-4046-8f4a-272fa8102e63
2011-07-18 22:19:10 +00:00
Paul Gorlinsky
9081b644c7 Function logmsg() renamed to log_msg(). LOGMSG define added. All logmsg calls changed to LOGMSG.
git-svn-id: file:///home/jj/hercules.svn/trunk@7333 956126f8-22a0-4046-8f4a-272fa8102e63
2011-02-23 03:48:52 +00:00
Paul Gorlinsky
a0b1509531 Replace long long with S64; replace unsigned long long with U64 change %lld to %"I64_FMT", etc. for porting support.
git-svn-id: file:///home/jj/hercules.svn/trunk@6906 956126f8-22a0-4046-8f4a-272fa8102e63
2010-10-15 16:09:38 +00:00
Jan Jaeger
3c2231a7a2 Remove sysblk.numcpu
sysblk.numcpu has no actual meaning other than that is the 
current setting at the moment the numcpu config/command is
issued.

All code should be aware of:
sysblk.maxcpu - This is the actual number of cpu's visible to the guest OS
sysblk.cpus   - This is the actual number of online cpu's
sysblk.hicpu  - This is the highest online cpu address + 1
 


git-svn-id: file:///home/jj/hercules.svn/trunk@6841 956126f8-22a0-4046-8f4a-272fa8102e63
2010-10-09 17:37:18 +00:00
Paul Gorlinsky
c4b355a333 Buffer Overflow cleanup - ongoing
git-svn-id: file:///home/jj/hercules.svn/trunk@6683 956126f8-22a0-4046-8f4a-272fa8102e63
2010-09-30 18:17:24 +00:00
Paul Gorlinsky
3b4a8d0a8b Remove tabs, minor cleanup; maxcpu = numcpu if numcpu > maxcpu
git-svn-id: file:///home/jj/hercules.svn/trunk@6082 956126f8-22a0-4046-8f4a-272fa8102e63
2010-06-03 15:48:14 +00:00
Bernard van der Helm
fe4820b164 Changed all static sprintf(buf to snprintf(buf, buflen for more
robustness. And solved a segmentation fault in the lsdep command.


git-svn-id: file:///home/jj/hercules.svn/trunk@6081 956126f8-22a0-4046-8f4a-272fa8102e63
2010-06-03 14:08:26 +00:00
Paul Gorlinsky
658010a947 Update notices; Standardize preamble...
git-svn-id: file:///home/jj/hercules.svn/trunk@5999 956126f8-22a0-4046-8f4a-272fa8102e63
2010-05-18 14:10:36 +00:00
Bernard van der Helm
8cbb01effd std msg external.c
git-svn-id: file:///home/jj/hercules.svn/trunk@5978 956126f8-22a0-4046-8f4a-272fa8102e63
2010-05-12 10:56:38 +00:00
Paul Gorlinsky
5acbff7852 Message Cleanup. Standardize DEVICE references.
git-svn-id: file:///home/jj/hercules.svn/trunk@5780 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-01 21:52:53 +00:00
Bernard van der Helm
98a2d13233 external.c std msg
git-svn-id: file:///home/jj/hercules.svn/trunk@5721 956126f8-22a0-4046-8f4a-272fa8102e63
2010-03-21 08:42:05 +00:00
Harold Grovesteen
7c4b05fde2 Add dynamic VM Block I/O interrupt logging
git-svn-id: file:///home/jj/hercules.svn/trunk@5469 956126f8-22a0-4046-8f4a-272fa8102e63
2009-10-03 19:11:05 +00:00
Harold Grovesteen
5ed9642005 Enable VM DIAGNOSE X'250'
git-svn-id: file:///home/jj/hercules.svn/trunk@5444 956126f8-22a0-4046-8f4a-272fa8102e63
2009-08-09 16:36:42 +00:00
Jan Jaeger
16b1636a97 add ext io and restart ptt trace entries
git-svn-id: file:///home/jj/hercules.svn/trunk@5248 956126f8-22a0-4046-8f4a-272fa8102e63
2009-03-06 09:57:03 +00:00
Bernard van der Helm
56d0369332 copyright notice
git-svn-id: file:///home/jj/hercules.svn/trunk@5125 956126f8-22a0-4046-8f4a-272fa8102e63
2009-01-23 12:01:44 +00:00
Roger Bowler
2cfae78fb2 Issue message if service signal interrupt occurs while stepping or tracing
git-svn-id: file:///home/jj/hercules.svn/trunk@4992 956126f8-22a0-4046-8f4a-272fa8102e63
2008-12-28 22:00:57 +00:00
Ivan Warren
0a090d20e9 Update copyright notices to include current year (2007)
git-svn-id: file:///home/jj/hercules.svn/trunk@4405 956126f8-22a0-4046-8f4a-272fa8102e63
2007-06-23 00:04:19 +00:00
Greg Smith
0271e8d70b Display timer interrupts only if tracing/stepping all
git-svn-id: file:///home/jj/hercules.svn/trunk@4301 956126f8-22a0-4046-8f4a-272fa8102e63
2007-02-26 00:54:22 +00:00
Greg Smith
f8b90121b9 Tweaks to instruction stepping/tracing
git-svn-id: file:///home/jj/hercules.svn/trunk@4255 956126f8-22a0-4046-8f4a-272fa8102e63
2007-01-16 01:45:33 +00:00
Jan Jaeger
64b9a97a0d Add CVS message log
git-svn-id: file:///home/jj/hercules.svn/trunk@4102 956126f8-22a0-4046-8f4a-272fa8102e63
2006-12-08 09:43:35 +00:00
Greg Smith
7b132ee3ad 05 Nov 2006 Fix insttrace loop in external.c - Greg Smith
git-svn-id: file:///home/jj/hercules.svn/trunk@4027 956126f8-22a0-4046-8f4a-272fa8102e63
2006-11-05 20:16:09 +00:00
Ivan Warren
fbc62c96cf Fix missing Interval timer interrupt when the interval timer goes negative
when fetched by the CPU.
ECPS:VM VTIMER still broken. Disable ECPS:VM for now or use CP ASSIST NOTMR


git-svn-id: file:///home/jj/hercules.svn/trunk@3993 956126f8-22a0-4046-8f4a-272fa8102e63
2006-10-02 17:14:43 +00:00
Greg Smith
028e74dd79 12 Apr 2005 SYNCHRONIZE_CPUS macro in place of synchronize_broadcast - Greg
git-svn-id: file:///home/jj/hercules.svn/trunk@3828 956126f8-22a0-4046-8f4a-272fa8102e63
2006-04-12 10:33:41 +00:00
Jay Maynard
d63e5069f0 Fixed spelling from "ajust" to "adjust".
git-svn-id: file:///home/jj/hercules.svn/trunk@3655 956126f8-22a0-4046-8f4a-272fa8102e63
2006-02-04 01:06:56 +00:00
Jan Jaeger
1fe378f165 Update itimer on ext int
git-svn-id: file:///home/jj/hercules.svn/trunk@3614 956126f8-22a0-4046-8f4a-272fa8102e63
2006-01-14 14:19:15 +00:00
Jan Jaeger
7d7338f922 ecps vtimer mods
git-svn-id: file:///home/jj/hercules.svn/trunk@3613 956126f8-22a0-4046-8f4a-272fa8102e63
2006-01-14 14:16:20 +00:00
Ivan Warren
ba4b960923 Restore int_timer (different function than INT_TIMER)
git-svn-id: file:///home/jj/hercules.svn/trunk@3610 956126f8-22a0-4046-8f4a-272fa8102e63
2006-01-13 20:01:55 +00:00
Ivan Warren
039fcf49c1 Alter/display of interval timer now works
git-svn-id: file:///home/jj/hercules.svn/trunk@3607 956126f8-22a0-4046-8f4a-272fa8102e63
2006-01-13 15:39:32 +00:00
Jan Jaeger
67b2c21899 Interval timer rework
git-svn-id: file:///home/jj/hercules.svn/trunk@3588 956126f8-22a0-4046-8f4a-272fa8102e63
2006-01-08 13:07:32 +00:00
Jan Jaeger
cf559896b4 CPU Timer rework
git-svn-id: file:///home/jj/hercules.svn/trunk@3557 956126f8-22a0-4046-8f4a-272fa8102e63
2005-12-31 20:14:56 +00:00
Jan Jaeger
52f1e00b35 Update copyright notice
git-svn-id: file:///home/jj/hercules.svn/trunk@3551 956126f8-22a0-4046-8f4a-272fa8102e63
2005-12-31 13:16:00 +00:00
Jan Jaeger
4836676001 Change all "%llX" occurances to "%" I64_FMT "X"
git-svn-id: file:///home/jj/hercules.svn/trunk@3373 956126f8-22a0-4046-8f4a-272fa8102e63
2005-12-11 17:10:22 +00:00
Jan Jaeger
482b065ccc New TOD clock infra
Hercules clock now supports proper steering
The TODDRAG command is now based on TOD steering (e.g. 1.01 slows down by 1%)
The SYSEPOCH initialisation statement has no restrictions on the epoch choosen


git-svn-id: file:///home/jj/hercules.svn/trunk@3303 956126f8-22a0-4046-8f4a-272fa8102e63
2005-12-04 11:38:43 +00:00
Ivan Warren
a34a2cdd8c Explicitly export ARCH_DEP(program_interrupt) to allow build
of dynamically loaded instructions


git-svn-id: file:///home/jj/hercules.svn/trunk@3187 956126f8-22a0-4046-8f4a-272fa8102e63
2005-11-13 22:29:03 +00:00
Jay Maynard
2370aac4ee The big move: moving MSVC (mingw_port) branch to the trunk. Cross your
fingers...


git-svn-id: file:///home/jj/hercules.svn/trunk@3027 956126f8-22a0-4046-8f4a-272fa8102e63
2005-09-24 16:17:46 +00:00
Jan Jaeger
38b2d90e1b Add 1052/3215 integrated console
Update copyright to reflect 2005


git-svn-id: file:///home/jj/hercules.svn/trunk@2563 956126f8-22a0-4046-8f4a-272fa8102e63
2005-01-02 16:10:14 +00:00
Greg Smith
2cc63ca3f2 17 Feb 2004 Performance patches try # 2 - Greg Smith
git-svn-id: file:///home/jj/hercules.svn/trunk@2191 956126f8-22a0-4046-8f4a-272fa8102e63
2004-02-17 22:38:48 +00:00
Greg Smith
82f496160e 17 Feb 2004 Backout changes for a while - Greg
git-svn-id: file:///home/jj/hercules.svn/trunk@2190 956126f8-22a0-4046-8f4a-272fa8102e63
2004-02-17 13:17:13 +00:00
Greg Smith
8b278893e2 16 Feb 2004 clc.pat - Optimize CLC - Greg Smith
16 Feb 2004 move_chars.pat - Optimize move_chars - Greg Smith
16 Feb 2004 radr.pat - Make type RADR type U32 for 32 bit machines - Greg Smith
16 Feb 2004 sie_mode.pat - Check sie_mode bit for sie mode regs - Greg Smith
16 Feb 2004 vfethc.pat - Optimize vfetchc - Greg Smith
16 Feb 2004 execflag.pat - Remove execflag from inst calls - Greg Smith
16 Feb 2004 skp.pat - Reduce setting storage key bits - Greg Smith
16 Feb 2004 psw.pat - Revise internal psw format - Greg Smith


git-svn-id: file:///home/jj/hercules.svn/trunk@2189 956126f8-22a0-4046-8f4a-272fa8102e63
2004-02-17 04:43:49 +00:00
Greg Smith
a366ec8e74 07 Feb 2004 Update cpuints.h bit processing - Greg Smith
git-svn-id: file:///home/jj/hercules.svn/trunk@2183 956126f8-22a0-4046-8f4a-272fa8102e63
2004-02-07 17:33:29 +00:00
Jan Jaeger
727faccc77 Correct SIE feature byte tests
git-svn-id: file:///home/jj/hercules.svn/trunk@2181 956126f8-22a0-4046-8f4a-272fa8102e63
2004-02-06 20:13:24 +00:00
Jan Jaeger
1921a1be89 Add SIE_STATB macro which tests state descriptor feature bytes
For example: SIE_STATB(regs, IC1, LPSW) tests if LPSW should be intercepted.


git-svn-id: file:///home/jj/hercules.svn/trunk@2176 956126f8-22a0-4046-8f4a-272fa8102e63
2004-02-04 11:49:48 +00:00
Jan Jaeger
539a3a7462 Add SIE_STATE macro as suggested by Greg
git-svn-id: file:///home/jj/hercules.svn/trunk@2175 956126f8-22a0-4046-8f4a-272fa8102e63
2004-02-04 09:10:47 +00:00
Greg Smith
bad999e53e 16 Jan 2004 Performance Enhancement: REGS on run_cpu stack - Greg Smith
git-svn-id: file:///home/jj/hercules.svn/trunk@2156 956126f8-22a0-4046-8f4a-272fa8102e63
2004-01-17 04:27:01 +00:00