isa.cc (7749:859e8bc1cdc2) isa.cc (7757:d7360f5052b2)
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 159 unchanged lines hidden (view full) ---

168{
169 if (misc_reg == MISCREG_CPSR) {
170 CPSR cpsr = miscRegs[misc_reg];
171 PCState pc = tc->pcState();
172 cpsr.j = pc.jazelle() ? 1 : 0;
173 cpsr.t = pc.thumb() ? 1 : 0;
174 return cpsr;
175 }
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 159 unchanged lines hidden (view full) ---

168{
169 if (misc_reg == MISCREG_CPSR) {
170 CPSR cpsr = miscRegs[misc_reg];
171 PCState pc = tc->pcState();
172 cpsr.j = pc.jazelle() ? 1 : 0;
173 cpsr.t = pc.thumb() ? 1 : 0;
174 return cpsr;
175 }
176 if (misc_reg >= MISCREG_CP15_UNIMP_START &&
177 misc_reg < MISCREG_CP15_END) {
176 if (misc_reg >= MISCREG_CP15_UNIMP_START)
178 panic("Unimplemented CP15 register %s read.\n",
179 miscRegName[misc_reg]);
177 panic("Unimplemented CP15 register %s read.\n",
178 miscRegName[misc_reg]);
180 }
179
181 switch (misc_reg) {
182 case MISCREG_CLIDR:
183 warn_once("The clidr register always reports 0 caches.\n");
184 break;
185 case MISCREG_CCSIDR:
186 warn_once("The ccsidr register isn't implemented and "
187 "always reads as 0.\n");
188 break;

--- 266 unchanged lines hidden ---
180 switch (misc_reg) {
181 case MISCREG_CLIDR:
182 warn_once("The clidr register always reports 0 caches.\n");
183 break;
184 case MISCREG_CCSIDR:
185 warn_once("The ccsidr register isn't implemented and "
186 "always reads as 0.\n");
187 break;

--- 266 unchanged lines hidden ---