diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2018-08-04 04:05:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-04 04:05:38 -0700 |
commit | dc34d4c9ed11e034bf9f81c02365496658f36517 (patch) | |
tree | 4cfb053ffccefe134d1ef84ecb5bce972fa0d167 /gui/ice40 | |
parent | f5a1b93f0e9348437ece7fb7d46ac69af98536d0 (diff) | |
parent | 0cb349b60ea17378a4c163f0c8b12e8b17988cee (diff) | |
download | nextpnr-dc34d4c9ed11e034bf9f81c02365496658f36517.tar.gz nextpnr-dc34d4c9ed11e034bf9f81c02365496658f36517.tar.bz2 nextpnr-dc34d4c9ed11e034bf9f81c02365496658f36517.zip |
Merge pull request #33 from YosysHQ/gui-ecp5
Gui ecp5
Diffstat (limited to 'gui/ice40')
-rw-r--r-- | gui/ice40/mainwindow.cc | 11 | ||||
-rw-r--r-- | gui/ice40/mainwindow.h | 2 |
2 files changed, 2 insertions, 11 deletions
diff --git a/gui/ice40/mainwindow.cc b/gui/ice40/mainwindow.cc index 2fa2e561..40b863e9 100644 --- a/gui/ice40/mainwindow.cc +++ b/gui/ice40/mainwindow.cc @@ -37,7 +37,7 @@ static void initMainResource() { Q_INIT_RESOURCE(nextpnr); } NEXTPNR_NAMESPACE_BEGIN
MainWindow::MainWindow(std::unique_ptr<Context> context, ArchArgs args, QWidget *parent)
- : BaseMainWindow(std::move(context), parent), chipArgs(args)
+ : BaseMainWindow(std::move(context), args, parent)
{
initMainResource();
@@ -78,18 +78,11 @@ void MainWindow::createMenu() menuDesign->addAction(actionSaveAsc);
}
-#if defined(_MSC_VER)
-void load_chipdb();
-#endif
-
static const ChipInfoPOD *get_chip_info(const RelPtr<ChipInfoPOD> *ptr) { return ptr->get(); }
-QStringList getSupportedPackages(ArchArgs::ArchArgsTypes chip)
+static QStringList getSupportedPackages(ArchArgs::ArchArgsTypes chip)
{
QStringList packages;
-#if defined(_MSC_VER)
- load_chipdb();
-#endif
const ChipInfoPOD *chip_info;
#ifdef ICE40_HX1K_ONLY
if (chip == ArchArgs::HX1K) {
diff --git a/gui/ice40/mainwindow.h b/gui/ice40/mainwindow.h index 230ccc4e..829375e2 100644 --- a/gui/ice40/mainwindow.h +++ b/gui/ice40/mainwindow.h @@ -55,8 +55,6 @@ class MainWindow : public BaseMainWindow QAction *actionLoadPCF;
QAction *actionSaveAsc;
- ArchArgs chipArgs;
-
std::string currentProj;
std::string currentPCF;
};
|