Skip to content

Commit

Permalink
Softcode import
Browse files Browse the repository at this point in the history
  • Loading branch information
mandolaerik committed Jan 27, 2025
1 parent ea00bb8 commit 0e63632
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/1.2/dml-builtins.dml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ header %{
#include <simics/dmllib.h>
%}

import "simics/device-api.dml;
import "simics-api.dml";
import "simics/devs/io-memory.dml";
import "simics/model-iface/bank-instrumentation.dml";
Expand Down
1 change: 1 addition & 0 deletions lib/1.4/dml-builtins.dml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ header %{
#include <simics/dmllib.h>
%}

import "simics/device-api.dml;
import "simics/devs/io-memory.dml";
import "simics/model-iface/bank-instrumentation.dml";
import "simics/model-iface/int-register.dml";
Expand Down
3 changes: 1 addition & 2 deletions py/dml/toplevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,7 @@ def parse_main_file(inputfilename, explicit_import_path):
dml.globals.enabled_compat.discard(feature)

implicit_imports = [
ast.import_(site, "dml-builtins.dml"),
ast.import_(site, "simics/device-api.dml")]
ast.import_(site, "dml-builtins.dml")]

(unimported, headers, footers, global_defs, spec_asts) = scan_statements(
inputfilename, site, implicit_imports + stmts)
Expand Down

0 comments on commit 0e63632

Please sign in to comment.