private void setRegisterContext(String regName, BigInteger value) {
		Register reg = program.getRegister(regName);
		for (MemoryBlock block : program.getMemory().getBlocks()) {
			if (block.isExecute()) {
				try {
					program.getProgramContext()
							.setValue(reg, block.getStart(), block.getEnd(), value);
				}
				catch (ContextChangeException e) {
					throw new AssertException(e); // no instructions should exist yet
				}
			}
		}
	}
Apply register context to all memory blocks which satisfy blockPredicate check.
@param regName register name
@param value context value
Ghidra/Processors/PowerPC/src/main/java/ghidra/app/util/bin/format/elf/relocation/PowerPC_ElfRelocationContext.java