HomeFreeBSD

powerpc: Add lwsync and ptesync 'sync' opcode variants to ddb disassembler

Description

powerpc: Add lwsync and ptesync 'sync' opcode variants to ddb disassembler

The canonical form of sync is:

sync L, E (if Category Elemental Memory Barriers implemented)

The L bits (2) denote the type of sync:

0 -- hwsync
1 -- lwsync
2 -- ptesync or hwsync

It's been found that most 32-bit CPUs designed prior to the introduction of
lwsync will ignore the L bits. However, some cores, particularly the e500 core,
will trigger an illegal instruction exception. Adding these variants will make
it easier to see which sync variant is actually being used in case of a trap.

Details

Provenance
jhibbitsAuthored on
Parents
rS337561: MFC r337549: libnv: Remove -I${SRCTOP}/sys
Branches
Unknown
Tags
Unknown