X86KvmCPU.py revision 13665
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 * 3011988Sandreas.sandberg@arm.comfrom m5.SimObject import * 3113665Sandreas.sandberg@arm.com 3213665Sandreas.sandberg@arm.comfrom m5.objects.BaseKvmCPU import BaseKvmCPU 339883Sandreas@sandberg.pp.se 349883Sandreas@sandberg.pp.seclass X86KvmCPU(BaseKvmCPU): 359883Sandreas@sandberg.pp.se type = 'X86KvmCPU' 369883Sandreas@sandberg.pp.se cxx_header = "cpu/kvm/x86_cpu.hh" 379883Sandreas@sandberg.pp.se 3811988Sandreas.sandberg@arm.com cxx_exports = [ 3911988Sandreas.sandberg@arm.com PyBindMethod("dumpFpuRegs"), 4011988Sandreas.sandberg@arm.com PyBindMethod("dumpIntRegs"), 4111988Sandreas.sandberg@arm.com PyBindMethod("dumpSpecRegs"), 4211988Sandreas.sandberg@arm.com PyBindMethod("dumpXCRs"), 4311988Sandreas.sandberg@arm.com PyBindMethod("dumpXSave"), 4411988Sandreas.sandberg@arm.com PyBindMethod("dumpVCpuEvents"), 4511988Sandreas.sandberg@arm.com ] 469890Sandreas@sandberg.pp.se 479890Sandreas@sandberg.pp.se useXSave = Param.Bool(True, "Use XSave to synchronize FPU/SIMD registers") 48