types.cc (10905:a6ca6831e775) types.cc (10924:d02e9c239892)
1/*
2 * Copyright (c) 2010 Advanced Micro Devices, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 27 unchanged lines hidden (view full) ---

36
37template <>
38void
39paramOut(CheckpointOut &cp, const string &name, ExtMachInst const &machInst)
40{
41 // Prefixes
42 paramOut(cp, name + ".legacy", (uint8_t)machInst.legacy);
43 paramOut(cp, name + ".rex", (uint8_t)machInst.rex);
1/*
2 * Copyright (c) 2010 Advanced Micro Devices, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 27 unchanged lines hidden (view full) ---

36
37template <>
38void
39paramOut(CheckpointOut &cp, const string &name, ExtMachInst const &machInst)
40{
41 // Prefixes
42 paramOut(cp, name + ".legacy", (uint8_t)machInst.legacy);
43 paramOut(cp, name + ".rex", (uint8_t)machInst.rex);
44 paramOut(cp, name + ".vex", (uint32_t)machInst.vex);
44
45 // Opcode
46 paramOut(cp, name + ".opcode.type", (uint8_t)machInst.opcode.type);
47 paramOut(cp, name + ".opcode.op", (uint8_t)machInst.opcode.op);
48
49 // Modifier bytes
50 paramOut(cp, name + ".modRM", (uint8_t)machInst.modRM);
51 paramOut(cp, name + ".sib", (uint8_t)machInst.sib);

--- 18 unchanged lines hidden (view full) ---

70{
71 uint8_t temp8;
72 // Prefixes
73 paramIn(cp, name + ".legacy", temp8);
74 machInst.legacy = temp8;
75 paramIn(cp, name + ".rex", temp8);
76 machInst.rex = temp8;
77
45
46 // Opcode
47 paramOut(cp, name + ".opcode.type", (uint8_t)machInst.opcode.type);
48 paramOut(cp, name + ".opcode.op", (uint8_t)machInst.opcode.op);
49
50 // Modifier bytes
51 paramOut(cp, name + ".modRM", (uint8_t)machInst.modRM);
52 paramOut(cp, name + ".sib", (uint8_t)machInst.sib);

--- 18 unchanged lines hidden (view full) ---

71{
72 uint8_t temp8;
73 // Prefixes
74 paramIn(cp, name + ".legacy", temp8);
75 machInst.legacy = temp8;
76 paramIn(cp, name + ".rex", temp8);
77 machInst.rex = temp8;
78
79 uint32_t temp32;
80 paramIn(cp, name + ".vex", temp32);
81 machInst.vex = temp32;
82
78 // Opcode
79 paramIn(cp, name + ".opcode.type", temp8);
80 machInst.opcode.type = (OpcodeType)temp8;
81 paramIn(cp, name + ".opcode.op", temp8);
82 machInst.opcode.op = temp8;
83
84 // Modifier bytes
85 paramIn(cp, name + ".modRM", temp8);

--- 18 unchanged lines hidden ---
83 // Opcode
84 paramIn(cp, name + ".opcode.type", temp8);
85 machInst.opcode.type = (OpcodeType)temp8;
86 paramIn(cp, name + ".opcode.op", temp8);
87 machInst.opcode.op = temp8;
88
89 // Modifier bytes
90 paramIn(cp, name + ".modRM", temp8);

--- 18 unchanged lines hidden ---