Important to note that this doesn't really apply to Apple Silicon. Rosetta II isn't X86 emulation, it's a translation layer - big technical difference.
But it can be different. Depends on the magic formulas you use for your claims, and whether you are actually permitted to patent software in the first place (with or without other magic formulas usually stating that said software is executed by some hardware).
And in places where it is not supposed to be possible to patent software, patent offices are usually nevertheless accepting them, because it gives them money so why not? :P
TLDR it is a mess. Depends on an insane nmuber of contextual factors, and as unpredictable as the outcome of Oracle vs. Google before the verdict. Or maybe even more unpredictable.