aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/main.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-06-13 20:42:11 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-06-13 20:42:11 +0200
commit03dff10cbde4c55e4ac9b53a01ba84f4bdac169b (patch)
tree9777bd23e29585b8dbf10cfb64f41823c4c1f67c /ice40/main.cc
parent4de147d9e42d7c932773544011a36e4550530a9e (diff)
downloadnextpnr-03dff10cbde4c55e4ac9b53a01ba84f4bdac169b.tar.gz
nextpnr-03dff10cbde4c55e4ac9b53a01ba84f4bdac169b.tar.bz2
nextpnr-03dff10cbde4c55e4ac9b53a01ba84f4bdac169b.zip
Load properties from json and propagate to context create
Diffstat (limited to 'ice40/main.cc')
-rw-r--r--ice40/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/main.cc b/ice40/main.cc
index 4cbca2d4..00d7fe3e 100644
--- a/ice40/main.cc
+++ b/ice40/main.cc
@@ -36,7 +36,7 @@ class Ice40CommandHandler : public CommandHandler
public:
Ice40CommandHandler(int argc, char **argv);
virtual ~Ice40CommandHandler(){};
- std::unique_ptr<Context> createContext() override;
+ std::unique_ptr<Context> createContext(std::unordered_map<std::string,Property> &values) override;
void setupArchContext(Context *ctx) override;
void validate() override;
void customAfterLoad(Context *ctx) override;
@@ -116,7 +116,7 @@ void Ice40CommandHandler::setupArchContext(Context *ctx)
}
}
-std::unique_ptr<Context> Ice40CommandHandler::createContext()
+std::unique_ptr<Context> Ice40CommandHandler::createContext(std::unordered_map<std::string,Property> &values)
{
if (vm.count("lp384")) {
chipArgs.type = ArchArgs::LP384;