Fix lxt2 space/speed flags.

The lxt2 routine was referencing the lxt not the lxt2 versions
of the space/speed flags. This also adds the lx2 version of the
flags. These were already supported in the sys_table.c file.
This commit is contained in:
Cary R 2010-05-20 18:06:17 -07:00 committed by Stephen Williams
parent cf264caabb
commit f268af3580
1 changed files with 9 additions and 3 deletions

View File

@ -879,15 +879,21 @@ void sys_lxt2_register()
vpiHandle res;
/* Scan the extended arguments, looking for lxt optimization
/* Scan the extended arguments, looking for lxt2 optimization
flags. */
vpi_get_vlog_info(&vlog_info);
for (idx = 0 ; idx < vlog_info.argc ; idx += 1) {
if (strcmp(vlog_info.argv[idx],"-lxt-space") == 0) {
if (strcmp(vlog_info.argv[idx],"-lxt2-space") == 0) {
lxm_optimum_mode = LXM_SPACE;
} else if (strcmp(vlog_info.argv[idx],"-lxt-speed") == 0) {
} else if (strcmp(vlog_info.argv[idx],"-lxt2-speed") == 0) {
lxm_optimum_mode = LXM_SPEED;
} else if (strcmp(vlog_info.argv[idx],"-lx2-space") == 0) {
lxm_optimum_mode = LXM_SPACE;
} else if (strcmp(vlog_info.argv[idx],"-lx2-speed") == 0) {
lxm_optimum_mode = LXM_SPEED;
}