Compaq EV67, 21264 specifications Restriction 30 Hwmtpr and Hwmfpr to the Cbox CSR

Models: 21264 EV67

1 356
Download 356 pages 49.13 Kb
Page 314
Image 314

Restriction 30 : HW_MTPR and HW_MFPR to the Cbox CSR

ALIGN_FETCH_BLOCK

 

sys__cbox:

 

 

mb

 

; quiet the dstream

hw_mfpr p6, EV6__I_CTL

; (4,0L) get i_ctl

lda

p4, ^xFCFF(r31)

; mask for clearing SBE bits

and

p6, p4, p4

; clear SBE bits

sbe_off_offset = <sys__cbox_sbe_off_done - sys__cbox_sbe_off>

hw_mtpr p4, EV6__I_CTL

br

p6, sys__cbox_sbe_off

sys__cbox_sbe_off:

 

addq

p6, #<sbe_off_offset+1>, p6

bsr

r31, .

ALIGN_FETCH_BLOCK <^x47FF041F>; align

hw_mtpr r31, EV6__IC_FLUSH

bne

r31, .

PVC_JSR sbe_off hw_ret_stall (p6) PVC_JSR sbe_off, dest=1

sys__cbox_sbe_off_done:

br

r31, sys__cbox_touch1

ALIGN_CACHE_BLOCK

sys__cbox_over1:

 

addq

r31, #11, p6

addq

r31, r31, p7

br

r31, sys__cbox_over2

sys__cbox_touch1:

 

br

r31, sys__cbox_touch2

sys__cbox_over2:

hw_mtpr r31, EV6__SHIFT_CONTROL

subq

p6, #1, p6

br

r31, sys__cbox_over3

sys__cbox_touch2:

 

br

r31, sys__cbox_touch3

sys__cbox_over3:

hw_mtpr r31, <EV6__MM_STAT ! 64 >

bis

p5, #1, p5

br

r31, sys__cbox_over4

sys__cbox_touch3:

 

br

r31, sys__cbox_touch4

sys__cbox_over4:

hw_mfpr p4, EV6__DATA

bis

r31, r31, r31

br

r31, sys__cbox_over5

sys__cbox_touch4:

 

br

r31, sys__cbox_touch5

sys__cbox_over5:

 

and

p4, #^x3F, p4

addq

p4, p7, p7

br

r31, sys__cbox_over6

sys__cbox_touch5:

 

br

r31, sys__cbox_touch6

;(4,0L) write new i_ctl

;past stall in palmode

;stack push

;(4,0L) eliminate prefetches

;pvc #24

;synch and flush

;use ret, pop stack

;br stops predictor

;now pull in the next block

;block 1

;initialize shift count (11x)

;initialize shift data

;go to block 2

;

;touch block 2

;block 2

;(6,0L) shift in 6 bits

;decrement shift count

;go to block 3

;

;touch block 3

;block 3

;(6,0L) wait for shift

;return in pal mode

;go to block 4

;

;touch block 4

;block 4

;(6,0L) read cbox data

;nop

;go to block 5

;

;touch block 5

;block 5

;clean to <5:0>

;accumulate shift data

;go to block 6

;

; touch block 6

D–16PALcode Restrictions and Guidelines

Alpha 21264/EV67 Hardware Reference Manual

Page 314
Image 314
Compaq EV67, 21264 specifications Restriction 30 Hwmtpr and Hwmfpr to the Cbox CSR, 16PALcode Restrictions and Guidelines