x86: move fetch error handling into a helper function
authorJan Beulich <jbeulich@suse.com>
Fri, 21 Apr 2023 10:07:26 +0000 (12:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 21 Apr 2023 10:07:26 +0000 (12:07 +0200)
commit4bcbe86c25a61afd70106af466e73e4462c25d0b
treefb4e73b739ab16b5efddb2c6f3956c17634b4aa0
parentae272fb8a57bb03dcc8ff800bb1b861bdc79933f
x86: move fetch error handling into a helper function

... such that it can be used from other than the setjmp() error handling
path.

Since I'd like the function's parameter to be pointer-to-const, two
other functions need respective constification then, too (along with
needing to be forward-declared).
opcodes/i386-dis.c