mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-06-29 03:29:32 +00:00
Clean up some comments and messages.
This commit is contained in:
parent
b311cea4e5
commit
134eda8c12
|
@ -59,32 +59,6 @@ std::atomic<bool> hash_found (false);
|
||||||
PPC_BAT_entry ibat_array[4] = {{0}};
|
PPC_BAT_entry ibat_array[4] = {{0}};
|
||||||
PPC_BAT_entry dbat_array[4] = {{0}};
|
PPC_BAT_entry dbat_array[4] = {{0}};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
Quickly map to memory - sort of.
|
|
||||||
|
|
||||||
0x00000000 - 0x7FFFFFFF - Macintosh system memory
|
|
||||||
(Because this emulator is trying to emulate a Mac with a Grackle motherboard,
|
|
||||||
the most memory that can ever be allocated to the system is 2 Gigs.)
|
|
||||||
|
|
||||||
0x80000000 - 0xFF7FFFFF - PCI memory
|
|
||||||
This memory is allocated to things like the memory controller, video, and audio.
|
|
||||||
|
|
||||||
0xF3000000 - Mac OS I/O Device area
|
|
||||||
0xF3013000 - Serial Printer Port (0x20 bytes)
|
|
||||||
0xF3013020 - Serial Modem Port (0x20 bytes)
|
|
||||||
0xF3011000 - BMAC Ethernet (0x1000 bytes)
|
|
||||||
0xF3014000 - DAVAudio Sound Bus (0x1000 bytes)
|
|
||||||
0xF3015000 - Swim 3 Floppy Disk Drive (0x1000 bytes)
|
|
||||||
0xF3016000 - Cuda (0x2000 bytes)
|
|
||||||
0xF3020000 - Heathrow ATA (Hard Drive Interface)
|
|
||||||
|
|
||||||
0xFF800000 - 0xFFFFFFFF - ROM memory
|
|
||||||
This memory is for storing the ROM needed to boot up the computer.
|
|
||||||
|
|
||||||
This could definitely be refactored better - TODO
|
|
||||||
**/
|
|
||||||
|
|
||||||
void msr_status_update(){
|
void msr_status_update(){
|
||||||
msr_ip_test = (ppc_state.ppc_msr >> 6) & 1;
|
msr_ip_test = (ppc_state.ppc_msr >> 6) & 1;
|
||||||
msr_ir_test = (ppc_state.ppc_msr >> 5) & 1;
|
msr_ir_test = (ppc_state.ppc_msr >> 5) & 1;
|
||||||
|
@ -594,8 +568,6 @@ void address_quickgrab_translate(uint32_t addr, uint8_t num_bytes)
|
||||||
{
|
{
|
||||||
/* data address translation if enabled */
|
/* data address translation if enabled */
|
||||||
if (ppc_state.ppc_msr & 0x10) {
|
if (ppc_state.ppc_msr & 0x10) {
|
||||||
//printf("DATA RELOCATION GO! - GRABBING \n");
|
|
||||||
|
|
||||||
addr = ppc_mmu_addr_translate(addr, 0);
|
addr = ppc_mmu_addr_translate(addr, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
It contains a 16-bit value revealing machine's capabilities like bus speed,
|
It contains a 16-bit value revealing machine's capabilities like bus speed,
|
||||||
ROM speed, I/O configuration etc.
|
ROM speed, I/O configuration etc.
|
||||||
Because the meaning of these bits is poorly documented, the code below
|
Because the meaning of these bits is poorly documented, the code below
|
||||||
simply return raw values obtained from real hardware.
|
simply return a raw value obtained from real hardware.
|
||||||
*/
|
*/
|
||||||
class GossamerID : public MMIODevice {
|
class GossamerID : public MMIODevice {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** MacIO device family emulation
|
/** MacIO device family emulation
|
||||||
|
|
||||||
Mac I/O (MIO) is a family of ASICs to bring support for Apple legacy
|
Mac I/O (MIO) is a family of ASICs to bring support for Apple legacy
|
||||||
I/O hardware to PCI-based Power Macintosh. That legacy hardware has
|
I/O hardware to the PCI-based Power Macintosh. That legacy hardware has
|
||||||
existed long before Power Macintosh was introduced. It includes:
|
existed long before Power Macintosh was introduced. It includes:
|
||||||
- versatile interface adapter (VIA)
|
- versatile interface adapter (VIA)
|
||||||
- Sander-Woz integrated machine (SWIM) that is a floppy disk controller
|
- Sander-Woz integrated machine (SWIM) that is a floppy disk controller
|
||||||
|
@ -15,8 +15,8 @@
|
||||||
are called "cells", i.e. "VIA cell", "SWIM cell" etc.
|
are called "cells", i.e. "VIA cell", "SWIM cell" etc.
|
||||||
|
|
||||||
MIO itself is PCI compliant while the legacy hardware it emulates isn't.
|
MIO itself is PCI compliant while the legacy hardware it emulates isn't.
|
||||||
MIO occupies 512Kb of PCI memory space divided into registers space and DMA
|
MIO occupies 512Kb of the PCI memory space divided into registers space and
|
||||||
space. Access to emulated legacy devices is accomplished by reading from/
|
DMA space. Access to emulated legacy devices is accomplished by reading from/
|
||||||
writing to MIO's PCI address space at predefined offsets.
|
writing to MIO's PCI address space at predefined offsets.
|
||||||
|
|
||||||
MIO includes a DMA controller that offers 15 DMA channels implementing
|
MIO includes a DMA controller that offers 15 DMA channels implementing
|
||||||
|
|
2
main.cpp
2
main.cpp
|
@ -449,7 +449,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
if (romFile.fail()){
|
if (romFile.fail()){
|
||||||
cerr << "rom.bin not present. Please provide an appropriate ROM file"
|
cerr << "rom.bin not present. Please provide an appropriate ROM file"
|
||||||
<< "and restart this program.\n";
|
<< " and restart this program.\n";
|
||||||
|
|
||||||
romFile.close();
|
romFile.close();
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user