[Pdbg] [PATCH 6/6] main: Address by linux CPU number with PPC host backend
Alistair Popple
alistair at popple.id.au
Thu Jul 12 13:58:21 AEST 2018
> + /* FIXME host target is used POWER8 only currently */
This isn't really true though - we can (and do) use the host target for POWER9
as well (although not for HTM I suppose). Are the below macros different for P9?
If so I guess we might need something to detect P8 vs. P9.
> + chip = P8_PIR2GCID(pir);
> + core = P8_PIR2COREID(pir);
> + thread = P8_PIR2THREADID(pir);
> +
> + threadsel[chip][core][thread] = 1;
> + chipsel[chip][core] = &threadsel[chip][core][thread];
> + processorsel[chip] = &chipsel[chip][core];
> + }
> return true;
> }
>
>
- Alistair
More information about the Pdbg
mailing list