init.hh revision 5522
15522Snate@binkert.org/*
25522Snate@binkert.org * Copyright (c) 2008 The Hewlett-Packard Development Company
35522Snate@binkert.org * All rights reserved.
45522Snate@binkert.org *
55522Snate@binkert.org * Redistribution and use in source and binary forms, with or without
65522Snate@binkert.org * modification, are permitted provided that the following conditions are
75522Snate@binkert.org * met: redistributions of source code must retain the above copyright
85522Snate@binkert.org * notice, this list of conditions and the following disclaimer;
95522Snate@binkert.org * redistributions in binary form must reproduce the above copyright
105522Snate@binkert.org * notice, this list of conditions and the following disclaimer in the
115522Snate@binkert.org * documentation and/or other materials provided with the distribution;
125522Snate@binkert.org * neither the name of the copyright holders nor the names of its
135522Snate@binkert.org * contributors may be used to endorse or promote products derived from
145522Snate@binkert.org * this software without specific prior written permission.
155522Snate@binkert.org *
165522Snate@binkert.org * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
175522Snate@binkert.org * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
185522Snate@binkert.org * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
195522Snate@binkert.org * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
205522Snate@binkert.org * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
215522Snate@binkert.org * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
225522Snate@binkert.org * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
235522Snate@binkert.org * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
245522Snate@binkert.org * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
255522Snate@binkert.org * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
265522Snate@binkert.org * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
275522Snate@binkert.org *
285522Snate@binkert.org * Authors: Nathan Binkert
295522Snate@binkert.org */
305522Snate@binkert.org
315522Snate@binkert.org#ifndef __SIM_INIT_HH__
325522Snate@binkert.org#define __SIM_INIT_HH__
335522Snate@binkert.org
345522Snate@binkert.org/*
355522Snate@binkert.org * Data structure describing an embedded python file.
365522Snate@binkert.org */
375522Snate@binkert.orgstruct EmbeddedPyModule
385522Snate@binkert.org{
395522Snate@binkert.org    const char *filename;
405522Snate@binkert.org    const char *modpath;
415522Snate@binkert.org    const char *code;
425522Snate@binkert.org    const char *code_end;
435522Snate@binkert.org    int zlen;
445522Snate@binkert.org    int mlen;
455522Snate@binkert.org};
465522Snate@binkert.org
475522Snate@binkert.orgextern const EmbeddedPyModule embeddedPyImporter;
485522Snate@binkert.orgextern const EmbeddedPyModule embeddedPyModules[];
495522Snate@binkert.org
505522Snate@binkert.orgvoid initSignals();
515522Snate@binkert.orgint initM5Python();
525522Snate@binkert.orgint m5Main(int argc, char **argv);
535522Snate@binkert.org
545522Snate@binkert.org#endif // __SIM_INIT_HH__
55