From f268af3580d7e8d5e3917ecde362e37ecc43e1bf Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 20 May 2010 18:06:17 -0700 Subject: [PATCH] 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. --- vpi/sys_lxt2.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/vpi/sys_lxt2.c b/vpi/sys_lxt2.c index 2fcd7d9cf..afcd3889d 100644 --- a/vpi/sys_lxt2.c +++ b/vpi/sys_lxt2.c @@ -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; }