File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ void pc_machine_init_sgx_epc(PCMachineState *pcms)
20
20
memset (& pcms -> sgx_epc , 0 , sizeof (SGXEPCState ));
21
21
}
22
22
23
- int sgx_epc_get_section (int section_nr , uint64_t * addr , uint64_t * size )
23
+ bool sgx_epc_get_section (int section_nr , uint64_t * addr , uint64_t * size )
24
24
{
25
25
g_assert_not_reached ();
26
26
}
Original file line number Diff line number Diff line change @@ -115,21 +115,21 @@ SGXInfo *sgx_get_info(Error **errp)
115
115
return info ;
116
116
}
117
117
118
- int sgx_epc_get_section (int section_nr , uint64_t * addr , uint64_t * size )
118
+ bool sgx_epc_get_section (int section_nr , uint64_t * addr , uint64_t * size )
119
119
{
120
120
PCMachineState * pcms = PC_MACHINE (qdev_get_machine ());
121
121
SGXEPCDevice * epc ;
122
122
123
123
if (pcms -> sgx_epc .size == 0 || pcms -> sgx_epc .nr_sections <= section_nr ) {
124
- return 1 ;
124
+ return true ;
125
125
}
126
126
127
127
epc = pcms -> sgx_epc .sections [section_nr ];
128
128
129
129
* addr = epc -> addr ;
130
130
* size = memory_device_get_region_size (MEMORY_DEVICE (epc ), & error_fatal );
131
131
132
- return 0 ;
132
+ return false ;
133
133
}
134
134
135
135
void pc_machine_init_sgx_epc (PCMachineState * pcms )
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ typedef struct SGXEPCState {
55
55
int nr_sections ;
56
56
} SGXEPCState ;
57
57
58
- int sgx_epc_get_section (int section_nr , uint64_t * addr , uint64_t * size );
58
+ bool sgx_epc_get_section (int section_nr , uint64_t * addr , uint64_t * size );
59
59
60
60
static inline uint64_t sgx_epc_above_4g_end (SGXEPCState * sgx_epc )
61
61
{
You can’t perform that action at this time.
0 commit comments