Disable P10 optimizations on IBMi
IBMi does not yet support prefixed instructions, p10 features need to be disabled until OS support is available. Change-Id: Idca7d6ebd791b06ef8f1f8419badd1a3db0f277f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3562980 Reviewed-by: Junliang Yan <junyan@redhat.com> Commit-Queue: Milad Farazmand <mfarazma@redhat.com> Cr-Commit-Position: refs/heads/main@{#79718}
This commit is contained in:
parent
4bbe174c88
commit
e70ccb2f7f
@ -76,7 +76,13 @@ void CpuFeatures::ProbeImpl(bool cross_compile) {
|
|||||||
#else
|
#else
|
||||||
base::CPU cpu;
|
base::CPU cpu;
|
||||||
if (cpu.part() == base::CPU::kPPCPower10) {
|
if (cpu.part() == base::CPU::kPPCPower10) {
|
||||||
|
// IBMi does not yet support prefixed instructions introduced on Power10.
|
||||||
|
// Run on P9 mode until OS adds support.
|
||||||
|
#if defined(__PASE__)
|
||||||
|
supported_ |= (1u << PPC_9_PLUS);
|
||||||
|
#else
|
||||||
supported_ |= (1u << PPC_10_PLUS);
|
supported_ |= (1u << PPC_10_PLUS);
|
||||||
|
#endif
|
||||||
} else if (cpu.part() == base::CPU::kPPCPower9) {
|
} else if (cpu.part() == base::CPU::kPPCPower9) {
|
||||||
supported_ |= (1u << PPC_9_PLUS);
|
supported_ |= (1u << PPC_9_PLUS);
|
||||||
} else if (cpu.part() == base::CPU::kPPCPower8) {
|
} else if (cpu.part() == base::CPU::kPPCPower8) {
|
||||||
|
Loading…
Reference in New Issue
Block a user