Revision a139aa17
b/target-ppc/translate_init.c | ||
---|---|---|
8903 | 8903 |
/* Register SPR common to all PowerPC implementations */ |
8904 | 8904 |
gen_spr_generic(env); |
8905 | 8905 |
spr_register(env, SPR_PVR, "PVR", |
8906 |
SPR_NOACCESS, SPR_NOACCESS, |
|
8906 |
/* Linux permits userspace to read PVR */ |
|
8907 |
#if defined(CONFIG_LINUX_USER) |
|
8908 |
&spr_read_generic, |
|
8909 |
#else |
|
8910 |
SPR_NOACCESS, |
|
8911 |
#endif |
|
8912 |
SPR_NOACCESS, |
|
8907 | 8913 |
&spr_read_generic, SPR_NOACCESS, |
8908 | 8914 |
def->pvr); |
8909 | 8915 |
/* Register SVR if it's defined to anything else than POWERPC_SVR_NONE */ |
Also available in: Unified diff