Merge pull request #2851 from kugelfuhr/kugelfuhr/fix-2850
Fix "constant expression expected" when using .CPU_ISET_xxx with no target system set
This commit is contained in:
@@ -411,9 +411,6 @@ static void SetSys (const char* Sys)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Define the symbols for evaluating .cpu */
|
|
||||||
DefineCpuSymbols ();
|
|
||||||
|
|
||||||
/* Initialize the translation tables for the target system */
|
/* Initialize the translation tables for the target system */
|
||||||
TgtTranslateInit ();
|
TgtTranslateInit ();
|
||||||
}
|
}
|
||||||
@@ -1254,6 +1251,9 @@ int main (int argc, char* argv [])
|
|||||||
SetMemoryModel (MMODEL_NEAR);
|
SetMemoryModel (MMODEL_NEAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Define the symbols for evaluating .cpu */
|
||||||
|
DefineCpuSymbols ();
|
||||||
|
|
||||||
/* Set the default segment sizes according to the memory model */
|
/* Set the default segment sizes according to the memory model */
|
||||||
SetSegmentSizes ();
|
SetSegmentSizes ();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user