SystemC.py (12982:c7966254372e) | SystemC.py (13038:7bf84150855b) |
---|---|
1# Copyright 2018 Google, Inc. 2# 3# Redistribution and use in source and binary forms, with or without 4# modification, are permitted provided that the following conditions are 5# met: redistributions of source code must retain the above copyright 6# notice, this list of conditions and the following disclaimer; 7# redistributions in binary form must reproduce the above copyright 8# notice, this list of conditions and the following disclaimer in the --- 47 unchanged lines hidden (view full) --- 56 cxx_base = None 57 58 # Hide the cxx_exports from SimObject since we don't inherit from 59 # SimObject on the c++ side and so don't have those methods to call down 60 # into. 61 locals().update({ 62 method.name: (lambda *a, **k: None) for method in SimObject.cxx_exports 63 }) | 1# Copyright 2018 Google, Inc. 2# 3# Redistribution and use in source and binary forms, with or without 4# modification, are permitted provided that the following conditions are 5# met: redistributions of source code must retain the above copyright 6# notice, this list of conditions and the following disclaimer; 7# redistributions in binary form must reproduce the above copyright 8# notice, this list of conditions and the following disclaimer in the --- 47 unchanged lines hidden (view full) --- 56 cxx_base = None 57 58 # Hide the cxx_exports from SimObject since we don't inherit from 59 # SimObject on the c++ side and so don't have those methods to call down 60 # into. 61 locals().update({ 62 method.name: (lambda *a, **k: None) for method in SimObject.cxx_exports 63 }) |
64 65try: 66 import _m5 67except: 68 pass 69else: 70 import _m5.systemc 71 _m5.systemc.python_ready() |
|