miscregs.cc (8902:75b524b64c28) miscregs.cc (8988:528f0fa80f76)
1/*
2 * Copyright (c) 2010-2012 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

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

387 return MISCREG_PMSWINC;
388 case 5:
389 return MISCREG_PMSELR;
390 case 6:
391 return MISCREG_PMCEID0;
392 case 7:
393 return MISCREG_PMCEID1;
394 }
1/*
2 * Copyright (c) 2010-2012 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

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

387 return MISCREG_PMSWINC;
388 case 5:
389 return MISCREG_PMSELR;
390 case 6:
391 return MISCREG_PMCEID0;
392 case 7:
393 return MISCREG_PMCEID1;
394 }
395 break;
395 case 13:
396 switch (opc2) {
397 case 0:
398 return MISCREG_PMCCNTR;
399 case 1:
400 return MISCREG_PMC_OTHER;
401 case 2:
402 return MISCREG_PMXEVCNTR;
403 }
396 case 13:
397 switch (opc2) {
398 case 0:
399 return MISCREG_PMCCNTR;
400 case 1:
401 return MISCREG_PMC_OTHER;
402 case 2:
403 return MISCREG_PMXEVCNTR;
404 }
405 break;
404 case 14:
405 switch (opc2) {
406 case 0:
407 return MISCREG_PMUSERENR;
408 case 1:
409 return MISCREG_PMINTENSET;
410 case 2:
411 return MISCREG_PMINTENCLR;
412 }
406 case 14:
407 switch (opc2) {
408 case 0:
409 return MISCREG_PMUSERENR;
410 case 1:
411 return MISCREG_PMINTENSET;
412 case 2:
413 return MISCREG_PMINTENCLR;
414 }
415 break;
413 }
414 } else if (opc1 == 1) {
415 switch (crm) {
416 case 0:
417 switch (opc2) {
418 case 2: // L2CTLR, L2 Control Register
419 return MISCREG_L2CTLR;
420 default:
421 warn("Uknown miscregs: crn:%d crm:%d opc1:%d opc2:%d\n",
422 crn,crm, opc1,opc2);
423 break;
424 }
416 }
417 } else if (opc1 == 1) {
418 switch (crm) {
419 case 0:
420 switch (opc2) {
421 case 2: // L2CTLR, L2 Control Register
422 return MISCREG_L2CTLR;
423 default:
424 warn("Uknown miscregs: crn:%d crm:%d opc1:%d opc2:%d\n",
425 crn,crm, opc1,opc2);
426 break;
427 }
428 break;
425 default:
426 return MISCREG_L2LATENCY;
427 }
428 }
429 //Reserved for Branch Predictor, Cache and TCM operations
430 break;
431 case 10:
432 if (opc1 == 0) {

--- 70 unchanged lines hidden ---
429 default:
430 return MISCREG_L2LATENCY;
431 }
432 }
433 //Reserved for Branch Predictor, Cache and TCM operations
434 break;
435 case 10:
436 if (opc1 == 0) {

--- 70 unchanged lines hidden ---