|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.cmp.MpMon
public class MpMon
This class implements a Multiprocessor Monitor interface. A simple stand-alone text-based interface is also provided.
Copyright (c) 2004 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
static java.lang.String |
copyright
Copyright string |
static java.lang.String[] |
help
The help string(s) |
static java.lang.String |
linkClassName
The link class |
static java.lang.String |
networkClassName
The network class |
static java.lang.String |
prompt
The prompt string |
static boolean |
quit
The 'quit' flag |
static java.lang.String |
systemMemoryClassName
The link class |
static java.lang.String |
usage
The Usage string |
| Constructor Summary | |
|---|---|
MpMon()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
command(java.lang.String cmd,
Multiprocessor mp)
This method takes in a command string and returns a string containing the result output. |
static java.lang.String |
dasm(Processor p,
int addr,
int n)
This method returns a text representation of a disassembly of multiple instructions. |
static java.lang.String |
dumpMemoryMap(Processor p)
This method returns a string representation of the memory map. |
static java.lang.String |
dumpMemoryProfile(MemoryInterface m)
This method returns a string representation of the memory profile table. |
static java.lang.String |
dumpMemoryProfile(Processor p)
This method returns a string representation of the memory profile table. |
static java.lang.String |
dumpRegisters(Processor p)
This method returns a string representing the General Purpose Registers and their current values. |
static java.lang.String |
dumpSpecialRegisters(Processor p)
This method returns a string representing the Special Purpose Registers and their current values. |
static void |
fill(Processor p,
byte a,
int addr,
int size)
This method fills a section of memory of 'size' bytes starting at address 'addr' with the value 'a'. |
static java.lang.String |
getPrompt(Multiprocessor mp)
This method returns the prompt string. |
static void |
main(java.lang.String[] args)
This main method is used to bring up a single stand-alone monitor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String copyright
public static final java.lang.String[] help
public static java.lang.String networkClassName
public static java.lang.String linkClassName
public static java.lang.String systemMemoryClassName
public static java.lang.String prompt
public static final java.lang.String usage
public static boolean quit
| Constructor Detail |
|---|
public MpMon()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - The parameters passed to the main method. See
"usage" for more information on the expected parameters.
public static java.lang.String command(java.lang.String cmd,
Multiprocessor mp)
cmd - The input command.mp - The Multiprocessor object.
public static java.lang.String getPrompt(Multiprocessor mp)
mp - The multiprocessor.
public static java.lang.String dasm(Processor p,
int addr,
int n)
addr - The address at which to start disassembly.n - the number of instructions to disassemble.
public static java.lang.String dumpRegisters(Processor p)
p - The processor
public static java.lang.String dumpSpecialRegisters(Processor p)
p - The processor
public static java.lang.String dumpMemoryMap(Processor p)
p - The processor.
public static java.lang.String dumpMemoryProfile(Processor p)
p - The processor.
public static java.lang.String dumpMemoryProfile(MemoryInterface m)
m - The memory.
public static void fill(Processor p,
byte a,
int addr,
int size)
throws MemoryAccessException
a - The value to fill the memory with.addr - The start address of the memory to be filled.size - The number of bytes to fill.
MemoryAccessException - if an illegal memory address
is encountered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||