- removed PrintCPUInfo()

Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/


git-svn-id: http://moon:8086/svn/vhdl/trunk@557 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2009-10-28 23:18:16 +00:00
parent 19fe5c9005
commit 3072e46951
3 changed files with 1342 additions and 1383 deletions
@@ -127,18 +127,6 @@ int srec_getline(UINT8 *pLine)
return i;
}
UINT32 conv_endian32(UINT32 src)
{
UINT32 dst;
dst = (0xFF000000 & (src << 24))
| (0x00FF0000 & (src << 8))
| (0x0000FF00 & (src >> 8))
| (0x000000FF & (src >> 24));
return dst;
};
void Jump_to(void *pEntry)
{
__asm
@@ -227,37 +215,6 @@ void Exec_RE_at(void *pEntry)
);
}
void PrintCPUinfo(void)
{
int result, rev_id;
char *cpu_type_str[7] = {"invalid", "R2000", "R3000", "R6000", "R4000", "reserved", "R6000A"};
// Print Status register
result = CP0_SR_read();
sputs("Status : ");
print_word(result);
sputs("\n");
// Print Revision
result = CP0_PRID_read();
rev_id = (result >> 8) & 0xFF;
sputs("CPU type: ");
if ((rev_id > 0) && (rev_id < 0x07))
{
sputs(cpu_type_str[rev_id]);
sputs(" Rev.");
rev_id = result & 0xFF;
print_byte((char)rev_id);
}
else
sputs("Unknown");
sputs("\n");
}
#define MAX_IMG_SIZE (1024*1024) // bytes
#define SDRAM_BASE 0x40000000
#define FLASH_USE_BLOCK 1
@@ -323,9 +280,11 @@ int main(int argc, char *argv[])
// It's safe to use cached Flash,
// because D-Cache was invalidated during execution of start code
// pFlashIO = (UINT32*)(sys_flash_io + pImg_hdr->img_base);
pFlashMem = (UINT32*)(sys_flash_mem + pImg_hdr->img_base);
for (i=0; i < img_size/4; i++)
// ram32[i] = pFlashIO[i];
ram32[i] = pFlashMem[i];
sputs("done\n");