X86KvmCPU.py revision 9883
19883Sandreas@sandberg.pp.se# Copyright (c) 2013 Andreas Sandberg
29883Sandreas@sandberg.pp.se# All rights reserved.
39883Sandreas@sandberg.pp.se#
49883Sandreas@sandberg.pp.se# Redistribution and use in source and binary forms, with or without
59883Sandreas@sandberg.pp.se# modification, are permitted provided that the following conditions are
69883Sandreas@sandberg.pp.se# met: redistributions of source code must retain the above copyright
79883Sandreas@sandberg.pp.se# notice, this list of conditions and the following disclaimer;
89883Sandreas@sandberg.pp.se# redistributions in binary form must reproduce the above copyright
99883Sandreas@sandberg.pp.se# notice, this list of conditions and the following disclaimer in the
109883Sandreas@sandberg.pp.se# documentation and/or other materials provided with the distribution;
119883Sandreas@sandberg.pp.se# neither the name of the copyright holders nor the names of its
129883Sandreas@sandberg.pp.se# contributors may be used to endorse or promote products derived from
139883Sandreas@sandberg.pp.se# this software without specific prior written permission.
149883Sandreas@sandberg.pp.se#
159883Sandreas@sandberg.pp.se# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
169883Sandreas@sandberg.pp.se# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
179883Sandreas@sandberg.pp.se# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
189883Sandreas@sandberg.pp.se# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
199883Sandreas@sandberg.pp.se# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
209883Sandreas@sandberg.pp.se# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
219883Sandreas@sandberg.pp.se# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
229883Sandreas@sandberg.pp.se# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
239883Sandreas@sandberg.pp.se# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
249883Sandreas@sandberg.pp.se# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
259883Sandreas@sandberg.pp.se# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
269883Sandreas@sandberg.pp.se#
279883Sandreas@sandberg.pp.se# Authors: Andreas Sandberg
289883Sandreas@sandberg.pp.se
299883Sandreas@sandberg.pp.sefrom m5.params import *
309883Sandreas@sandberg.pp.sefrom BaseKvmCPU import BaseKvmCPU
319883Sandreas@sandberg.pp.se
329883Sandreas@sandberg.pp.seclass X86KvmCPU(BaseKvmCPU):
339883Sandreas@sandberg.pp.se    type = 'X86KvmCPU'
349883Sandreas@sandberg.pp.se    cxx_header = "cpu/kvm/x86_cpu.hh"
359883Sandreas@sandberg.pp.se
369883Sandreas@sandberg.pp.se    @classmethod
379883Sandreas@sandberg.pp.se    def export_methods(cls, code):
389883Sandreas@sandberg.pp.se        code('''
399883Sandreas@sandberg.pp.se      void dumpFpuRegs();
409883Sandreas@sandberg.pp.se      void dumpIntRegs();
419883Sandreas@sandberg.pp.se      void dumpSpecRegs();
429883Sandreas@sandberg.pp.se      void dumpXCRs();
439883Sandreas@sandberg.pp.se      void dumpXSave();
449883Sandreas@sandberg.pp.se      void dumpVCpuEvents();
459883Sandreas@sandberg.pp.se''')
46