pipeline: fix SWX jump instruction population

This patch fixes jump next instruction pointer population.

Fixes: b3947e25be ("pipeline: introduce SWX jump and return instructions")

Signed-off-by: Venkata Suresh Kumar P <venkata.suresh.kumar.p@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
This commit is contained in:
Venkata Suresh Kumar P 2020-10-16 14:57:47 +01:00 committed by David Marchand
parent 5636d60347
commit 1e17748b0a

View File

@ -5647,7 +5647,7 @@ instr_jmp_resolve(struct instruction *instructions,
data->jmp_label);
CHECK(found, EINVAL);
instr->jmp.ip = &instr[found - instruction_data];
instr->jmp.ip = &instructions[found - instruction_data];
}
return 0;