URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [or1ksim/] [testsuite/] [test-code-or1k/] [cfg/] [cfg.S] - Rev 438
Go to most recent revision | Compare with Previous | Blame | View Log
/* cfg.s. CPU configuration test of Or1ksimCopyright (C) 1999-2006 OpenCoresCopyright (C) 2010 Embecosm LimitedContributors various OpenCores participantsContributor Jeremy Bennett <jeremy.bennett@embecosm.com>This file is part of OpenRISC 1000 Architectural Simulator.This program is free software; you can redistribute it and/or modify itunder the terms of the GNU General Public License as published by the FreeSoftware Foundation; either version 3 of the License, or (at your option)any later version.This program is distributed in the hope that it will be useful, but WITHOUTANY WARRANTY; without even the implied warranty of MERCHANTABILITY orFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License formore details.You should have received a copy of the GNU General Public License alongwith this program. If not, see <http: www.gnu.org/licenses/>. *//* ----------------------------------------------------------------------------This code is commented throughout for use with Doxygen.--------------------------------------------------------------------------*/#include "spr-defs.h".section .except, "ax"l.addi r2,r0,0.section .text.org 0x100_reset:l.addi r1,r0,0x7f00l.movhi r2,hi(_main)l.ori r2,r2,lo(_main)l.jr r2l.nop_main:l.addi r2,r0,0l.mfspr r3,r0,SPR_VR /* Version */l.nop NOP_REPORTl.add r2,r2,r3l.mfspr r3,r0,SPR_UPR /* Unit Present */l.nop NOP_REPORTl.add r2,r2,r3l.mfspr r4,r0,SPR_PMR /* Power Management */l.addi r3,r0,0l.mtspr r0,r3,SPR_PMRl.mfspr r3,r0,SPR_PMRl.andi r3,r3,0xffl.nop NOP_REPORTl.add r2,r2,r3l.addi r3,r0,5l.mtspr r0,r3,SPR_PMRl.mfspr r3,r0,SPR_PMRl.andi r3,r3,0xffl.nop NOP_REPORTl.add r2,r2,r3l.mtspr r0,r4,SPR_PMRl.mfspr r3,r0,SPR_CPUCFGRl.nop NOP_REPORTl.add r2,r2,r3l.mfspr r3,r0,SPR_DMMUCFGRl.nop NOP_REPORTl.add r2,r2,r3l.mfspr r3,r0,SPR_IMMUCFGRl.nop NOP_REPORTl.add r2,r2,r3l.mfspr r3,r0,SPR_DCCFGRl.nop NOP_REPORTl.add r2,r2,r3l.mfspr r3,r0,SPR_ICCFGRl.nop NOP_REPORTl.add r2,r2,r3l.mfspr r3,r0,SPR_DCFGRl.nop NOP_REPORTl.add r2,r2,r3l.mfspr r3,r0,SPR_PCCFGRl.nop NOP_REPORTl.add r2,r2,r3/* Configurations may differ, so we will insert another report*/l.movhi r3,hi(0xdeacf5cc)l.ori r3,r3,lo(0xdeacf5cc)l.add r3,r2,r3l.nop NOP_REPORTl.movhi r3,hi(0xdeaddead)l.ori r3,r3,lo(0xdeaddead)l.nop NOP_REPORTl.addi r3,r0,0l.nop NOP_EXIT
Go to most recent revision | Compare with Previous | Blame | View Log
