mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 07:59:09 +02:00
* also check for 386+ when emitting a reference with a fs: or gs: prefix
git-svn-id: trunk@32926 -
This commit is contained in:
parent
80b3e3020a
commit
d4c21cf13a
@ -1611,6 +1611,11 @@ implementation
|
|||||||
{ Segment override }
|
{ Segment override }
|
||||||
if (segprefix>=NR_ES) and (segprefix<=NR_GS) then
|
if (segprefix>=NR_ES) and (segprefix<=NR_GS) then
|
||||||
begin
|
begin
|
||||||
|
{$ifdef i8086}
|
||||||
|
if (current_settings.cputype<cpu_386) and
|
||||||
|
((segprefix=NR_FS) or (segprefix=NR_GS)) then
|
||||||
|
Message(asmw_e_instruction_not_supported_by_cpu);
|
||||||
|
{$endif i8086}
|
||||||
objdata.writebytes(segprefixes[segprefix],1);
|
objdata.writebytes(segprefixes[segprefix],1);
|
||||||
{ fix the offset for GenNode }
|
{ fix the offset for GenNode }
|
||||||
inc(InsOffset);
|
inc(InsOffset);
|
||||||
|
Loading…
Reference in New Issue
Block a user