The bits to indicate presence of PIC and PMP has always been swapped
in or1200 w.r.t. the spec. This has been noted in
http://bugzilla.opencores.org/bugzilla4/show_bug.cgi?id=77 but was
never fixed. This patch fixes this. Note however that also has to be
fixed in our Linux port

Index: or1200_defines.v
===================================================================
--- or1200_defines.v    (revision 868)
+++ or1200_defines.v    (working copy)
@@ -1542,8 +1542,8 @@
 `define OR1200_UPR_MP_BITS             5
 `define OR1200_UPR_DUP_BITS            6
 `define OR1200_UPR_PCUP_BITS           7
-`define OR1200_UPR_PMP_BITS            8
-`define OR1200_UPR_PICP_BITS           9
+`define OR1200_UPR_PICP_BITS           8
+`define OR1200_UPR_PMP_BITS            9
 `define OR1200_UPR_TTP_BITS            10
 `define OR1200_UPR_FPP_BITS            11
 `define OR1200_UPR_RES1_BITS           23:12

Regards,
Olof
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc

Reply via email to