/[gxemul]/trunk/src/include/crimereg.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/src/include/crimereg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations)
Mon Oct 8 16:18:00 2007 UTC (16 years, 6 months ago) by dpavlin
File MIME type: text/plain
File size: 3988 byte(s)
++ trunk/HISTORY	(local)
$Id: HISTORY,v 1.707 2005/04/27 16:37:33 debug Exp $
20050408	Some minor updates to the wdc. Linux now doesn't complain
		anymore if a disk is non-present.
20050409	Various minor fixes (a bintrans bug, and some other things).
		The wdc seems to work with Playstation2 emulation, but there
		is a _long_ annoying delay when disks are detected.
		Fixing a really important bintrans bug (when devices and RAM
		are mixed within 4KB pages), which was triggered with
		NetBSD/playstation2 kernels.
20050410	Adding a dummy dev_ps2_ether (just so that NetBSD doesn't
		complain as much during bootup).
		Symbols starting with '$' are now ignored.
		Renaming dev_ps2_ohci.c to dev_ohci.c, etc.
20050411	Moving the bintrans-cache-isolation check from cpu_mips.c to
		cpu_mips_coproc.c. (I thought this would give a speedup, but
		it's not noticable.)
		Better playstation2 sbus interrupt code.
		Skip ahead many ticks if the count register is read manually.
		(This increases the speed of delay-loops that simply read
		the count register.)
20050412	Updates to the playstation2 timer/interrupt code.
		Some other minor updates.
20050413	NetBSD/cobalt runs from a disk image :-) including userland;
		updating the documentation on how to install NetBSD/cobalt
		using NetBSD/pmax (!).
		Some minor bintrans updates (no real speed improvement) and
		other minor updates (playstation2 now uses the -o options).
20050414	Adding a dummy x86 (and AMD64) mode.
20050415	Adding some (32-bit and 16-bit) x86 instructions.
		Adding some initial support for non-SCSI, non-IDE floppy
		images. (The x86 mode can boot from these, more or less.)
		Moving the devices/ and include/ directories to src/devices/
		and src/include/, respectively.
20050416	Continuing on the x86 stuff. (Adding pc_bios.c and some simple
		support for software interrupts in 16-bit mode.)
20050417	Ripping out most of the x86 instruction decoding stuff, trying
		to rewrite it in a cleaner way.
		Disabling some of the least working CPU families in the
		configure script (sparc, x86, alpha, hppa), so that they are
		not enabled by default.
20050418	Trying to fix the bug which caused problems when turning on
		and off bintrans interactively, by flushing the bintrans cache
		whenever bintrans is manually (re)enabled.
20050419	Adding the 'lswi' ppc instruction.
		Minor updates to the x86 instruction decoding.
20050420	Renaming x86 register name indices from R_xx to X86_R_xx (this
		makes building on Tru64 nicer).
20050422	Adding a check for duplicate MIPS TLB entries on tlbwr/tlbwi.
20050427	Adding screenshots to guestoses.html.
		Some minor fixes and testing for the next release.

==============  RELEASE 0.3.2  ==============


1 /* gxemul: $Id: crimereg.h,v 1.2 2005/03/05 12:34:02 debug Exp $ */
2 /* $NetBSD: crimereg.h,v 1.3 2002/03/13 13:12:26 simonb Exp $ */
3
4 /*
5 * Copyright (c) 2000 Soren S. Jorvang
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. All advertising materials mentioning features or use of this software
17 * must display the following acknowledgement:
18 * This product includes software developed for the
19 * NetBSD Project. See http://www.netbsd.org/ for
20 * information about NetBSD.
21 * 4. The name of the author may not be used to endorse or promote products
22 * derived from this software without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
25 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
26 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
27 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
28 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
29 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 */
35
36 /*
37 * O2 CRIME register definitions
38 */
39
40 #define CRIME_REV 0x000
41 #define CRIME_CONTROL 0x008
42 #define CRIME_INTSTAT 0x010
43 #define CRIME_INTMASK 0x018
44 #define CRIME_SOFTINT 0x020
45 #define CRIME_HARDINT 0x028
46 #define CRIME_DOG 0x030
47 #define McGriff CRIME_DOG /* Baseball compatibility */
48 #define CRIME_TIME 0x038
49 #define CRIME_CPU_ERROR_ADDR 0x040
50 #define CRIME_CPU_ERROR_STAT 0x048
51 #define CRIME_CPU_ERROR_ENA 0x050
52 #define CRM_VICE_ERROR_ADDR 0x058
53 #define CRM_MEM_CONTROL 0x200
54 #define CRM_MEM_BANK_CTRL0 0x208
55 #define CRM_MEM_BANK_CTRL1 0x218
56 #define CRM_MEM_BANK_CTRL2 0x210
57 #define CRM_MEM_BANK_CTRL3 0x228
58 #define CRM_MEM_BANK_CTRL4 0x220
59 #define CRM_MEM_BANK_CTRL5 0x238
60 #define CRM_MEM_BANK_CTRL6 0x230
61 #define CRM_MEM_BANK_CTRL7 0x248
62 #define CRM_MEM_REFRESH_CNTR 0x248
63 #define CRM_MEM_ERROR_STAT 0x250
64 #define CRM_MEM_ERROR_ADDR 0x258
65 #define CRM_MEM_ERROR_ECC_SYN 0x260
66 #define CRM_MEM_ERROR_ECC_CHK 0x268
67 #define CRM_MEM_ERROR_ECC_REPL 0x270
68
69 #define CRM_INT_VICE 0x80000000
70 #define CRM_INT_SOFT2 0x40000000
71 #define CRM_CPU_SysCorErr CRM_INT_SOFT2
72 #define CRM_INT_SOFT1 0x20000000
73 #define CRM_INT_SOFT0 0x10000000
74 #define CRM_INT_RE5 0x08000000
75 #define CRM_INT_RE4 0x04000000
76 #define CRM_INT_RE3 0x02000000
77 #define CRM_INT_RE2 0x01000000
78 #define CRM_INT_RE1 0x00800000
79 #define CRM_INT_RE0 0x00400000
80 #define CRM_INT_MEMERR 0x00200000
81 #define CRM_INT_CRMERR 0x00100000
82 #define CRM_INT_GBE3 0x00080000
83 #define CRM_INT_GBE2 0x00040000
84 #define CRM_INT_GBE1 0x00020000
85 #define CRM_INT_GBE0 0x00010000
86 #define MACE_PCI_SHARED2 0x00008000
87 #define MACE_PCI_SHARED1 0x00004000
88 #define MACE_PCI_SHARED0 0x00002000
89 #define MACE_PCI_SLOT2 0x00001000
90 #define MACE_PCI_SLOT1 0x00000800
91 #define MACE_PCI_SLOT0 0x00000400
92 #define MACE_PCI_SCSI1 0x00000200
93 #define MACE_PCI_SCSI0 0x00000100
94 #define MACE_PCI_BRIDGE 0x00000080
95 #define MACE_PERIPH_AUD 0x00000040
96 #define MACE_PERIPH_MISC 0x00000020
97 #define MACE_PERIPH_SERIAL 0x00000010
98 #define MACE_ETHERNET 0x00000008
99 #define MACE_VID_OUT 0x00000004
100 #define MACE_VID_IN2 0x00000002
101 #define MACE_VID_IN1 0x00000001

  ViewVC Help
Powered by ViewVC 1.1.26