Skip to contentSkip to conversation

720 - some progress

parisc-linux Jurij Smakov 3 participants 3 messages Sep 27, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines

The CPU in the 720 will treat this as a priviledged instruction. The changes "signal 18 -> signal 26, signal 27, signal 28" and "allow read access to CR26 and CR27 for non-priviledged access" are documented as new for the PA7100LC processor, so they are not available in the 720.

Another thing to emulate on the old 720/50 platform...

Cheers,
Jochen

It does not seem so complicated... Even with my rudimentary C programming skills :-). I'll try to put something together. Is there a way to check if we are running on a 720?

Jurij.

#1 lore raw
Quoted 3 lines · Jurij Smakov

It does not seem so complicated... Even with my rudimentary C programming skills :-). I'll try to put something together. Is there a way to check if we are running on a 720?

There is -- but don't bother. Check to see if the register being read is cr26 or cr27 and perform the access if it is. Obviously, reads of other control registers should not be emulated.

Signature · 1 line
Revolutions do not require corporate support.
#2 lore raw
In reply to Jurij Smakov

Hello,

A quick glance at arch/parisc/hardware/inventory.c reveiled the following:

long status;
unsigned int bus_id;
...
status = pdc_model_info(&model);
bus_id = (model.hversion >> (4 + 7)) & 0x1f;

switch (bus_id) {
case 0x4: /* 720, 730, 750, 735, 755 */

I don't know if all these models have the same CPU. I'm guessing not.

I also see a parisc_get_cpu_type(...) in arch/parisc/kernnel/hardware.c. This is probably what you want.

Regards,

Albert

Quoted 24 lines · Jurij Smakov
Quoted 9 lines

The CPU in the 720 will treat this as a priviledged instruction. The changes "signal 18 -> signal 26, signal 27, signal 28" and "allow read access to CR26 and CR27 for non-priviledged access" are documented as new for the PA7100LC processor, so they are not available in the 720.

Another thing to emulate on the old 720/50 platform...

Cheers,
Jochen

It does not seem so complicated... Even with my rudimentary C programming skills :-). I'll try to put something together. Is there a way to check if we are running on a 720?

Jurij.

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/cgi-bin/mailman/listinfo/parisc-linux