Revision 7dbe11ac target-ppc/translate.c
b/target-ppc/translate.c | ||
---|---|---|
4299 | 4299 |
|
4300 | 4300 |
/* 602 - 603 - G2 TLB management */ |
4301 | 4301 |
/* tlbld */ |
4302 |
GEN_HANDLER(tlbld, 0x1F, 0x12, 0x1E, 0x03FF0001, PPC_6xx_TLB) |
|
4302 |
GEN_HANDLER(tlbld_6xx, 0x1F, 0x12, 0x1E, 0x03FF0001, PPC_6xx_TLB)
|
|
4303 | 4303 |
{ |
4304 | 4304 |
#if defined(CONFIG_USER_ONLY) |
4305 | 4305 |
GEN_EXCP_PRIVOPC(ctx); |
... | ... | |
4314 | 4314 |
} |
4315 | 4315 |
|
4316 | 4316 |
/* tlbli */ |
4317 |
GEN_HANDLER(tlbli, 0x1F, 0x12, 0x1F, 0x03FF0001, PPC_6xx_TLB) |
|
4317 |
GEN_HANDLER(tlbli_6xx, 0x1F, 0x12, 0x1F, 0x03FF0001, PPC_6xx_TLB)
|
|
4318 | 4318 |
{ |
4319 | 4319 |
#if defined(CONFIG_USER_ONLY) |
4320 | 4320 |
GEN_EXCP_PRIVOPC(ctx); |
... | ... | |
4328 | 4328 |
#endif |
4329 | 4329 |
} |
4330 | 4330 |
|
4331 |
/* 74xx TLB management */ |
|
4332 |
/* tlbld */ |
|
4333 |
GEN_HANDLER(tlbld_74xx, 0x1F, 0x12, 0x1E, 0x03FF0001, PPC_74xx_TLB) |
|
4334 |
{ |
|
4335 |
#if defined(CONFIG_USER_ONLY) |
|
4336 |
GEN_EXCP_PRIVOPC(ctx); |
|
4337 |
#else |
|
4338 |
if (unlikely(!ctx->supervisor)) { |
|
4339 |
GEN_EXCP_PRIVOPC(ctx); |
|
4340 |
return; |
|
4341 |
} |
|
4342 |
gen_op_load_gpr_T0(rB(ctx->opcode)); |
|
4343 |
gen_op_74xx_tlbld(); |
|
4344 |
#endif |
|
4345 |
} |
|
4346 |
|
|
4347 |
/* tlbli */ |
|
4348 |
GEN_HANDLER(tlbli_74xx, 0x1F, 0x12, 0x1F, 0x03FF0001, PPC_74xx_TLB) |
|
4349 |
{ |
|
4350 |
#if defined(CONFIG_USER_ONLY) |
|
4351 |
GEN_EXCP_PRIVOPC(ctx); |
|
4352 |
#else |
|
4353 |
if (unlikely(!ctx->supervisor)) { |
|
4354 |
GEN_EXCP_PRIVOPC(ctx); |
|
4355 |
return; |
|
4356 |
} |
|
4357 |
gen_op_load_gpr_T0(rB(ctx->opcode)); |
|
4358 |
gen_op_74xx_tlbli(); |
|
4359 |
#endif |
|
4360 |
} |
|
4361 |
|
|
4331 | 4362 |
/* POWER instructions not in PowerPC 601 */ |
4332 | 4363 |
/* clf */ |
4333 | 4364 |
GEN_HANDLER(clf, 0x1F, 0x16, 0x03, 0x03E00000, PPC_POWER) |
Also available in: Unified diff