1// Copyright (c) 2007-2008 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// The license below extends only to copyright in the software and shall 5// not be construed as granting a license to any other intellectual 6// property including but not limited to intellectual property relating 7// to a hardware implementation of the functionality of the software 8// licensed hereunder. You may use the software subject to the license --- 413 unchanged lines hidden (view full) --- 422 case 8: 423 FpData_df = *(double *)&Mem; 424 break; 425 default: 426 panic("Unhandled data size in LdFp87.\\n"); 427 } 428 ''', big = False) 429 |
430 # Load integer from memory into x87 top-of-stack register. 431 # Used to implement fild instruction. 432 defineMicroLoadOp('Ldifp87', code=''' 433 switch (dataSize) 434 { 435 case 2: 436 FpData_df = (int64_t)sext<16>(Mem); 437 break; 438 case 4: 439 FpData_df = (int64_t)sext<32>(Mem); 440 break; 441 case 8: 442 FpData_df = (int64_t)Mem; 443 break; 444 default: 445 panic("Unhandled data size in LdIFp87.\\n"); 446 } 447 ''', big = False) 448 |
449 def defineMicroStoreOp(mnemonic, code, completeCode="", mem_flags="0"): 450 global header_output 451 global decoder_output 452 global exec_output 453 global microopClasses 454 Name = mnemonic 455 name = mnemonic.lower() 456 --- 99 unchanged lines hidden --- |