Merge pull request #1195 from davidhorstmann-arm/wrapper-generation-logic-invert

[Backport 2.28] Flip logic of PSA memory poisoning generation