- 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:
@@ -127,18 +127,6 @@ int srec_getline(UINT8 *pLine)
|
|||||||
return i;
|
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)
|
void Jump_to(void *pEntry)
|
||||||
{
|
{
|
||||||
__asm
|
__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 MAX_IMG_SIZE (1024*1024) // bytes
|
||||||
#define SDRAM_BASE 0x40000000
|
#define SDRAM_BASE 0x40000000
|
||||||
#define FLASH_USE_BLOCK 1
|
#define FLASH_USE_BLOCK 1
|
||||||
@@ -323,9 +280,11 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// It's safe to use cached Flash,
|
// It's safe to use cached Flash,
|
||||||
// because D-Cache was invalidated during execution of start code
|
// 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);
|
pFlashMem = (UINT32*)(sys_flash_mem + pImg_hdr->img_base);
|
||||||
|
|
||||||
for (i=0; i < img_size/4; i++)
|
for (i=0; i < img_size/4; i++)
|
||||||
|
// ram32[i] = pFlashIO[i];
|
||||||
ram32[i] = pFlashMem[i];
|
ram32[i] = pFlashMem[i];
|
||||||
|
|
||||||
sputs("done\n");
|
sputs("done\n");
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user