}
break;
}
+ case CSR_UREMAP:
+ {
+ state.remap[0].regidx = get_field(val, SV_REMAP_REGIDX0);
+ state.remap[1].regidx = get_field(val, SV_REMAP_REGIDX1);
+ state.remap[2].regidx = get_field(val, SV_REMAP_REGIDX2);
+ state.remap[0].shape = get_field(val, SV_REMAP_SHAPE0);
+ state.remap[1].shape = get_field(val, SV_REMAP_SHAPE1);
+ state.remap[2].shape = get_field(val, SV_REMAP_SHAPE2);
+ break;
+ }
#endif
case CSR_FFLAGS:
dirty_fp_state;
int permute;
} sv_shape_t;
+#define SV_REMAP_REGIDX0 (0x7f)
+#define SV_REMAP_REGIDX1 (0x7f<<8)
+#define SV_REMAP_REGIDX2 (0x7f<<16)
+#define SV_REMAP_SHAPE0 (0x3<<24)
+#define SV_REMAP_SHAPE1 (0x3<<26)
+#define SV_REMAP_SHAPE2 (0x3<<28)
+
#endif