checking.cc (242b24828472137ec4411826b86e753d49bd2c39) checking.cc (21d5d37ba4c0131d6c141695366e266e32cc3bc1)
1/*-
2 * Copyright (c) 2013 David Chisnall
3 * All rights reserved.
4 *
5 * This software was developed by SRI International and the University of
6 * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
7 * ("CTSRD"), as part of the DARPA CRASH research programme.
8 *

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

92 found_address = ((*i)->get_key() == "#address-cells");
93 }
94 if (!found_size)
95 {
96 found_size = ((*i)->get_key() == "#size-cells");
97 }
98 if (found_size && found_address)
99 {
1/*-
2 * Copyright (c) 2013 David Chisnall
3 * All rights reserved.
4 *
5 * This software was developed by SRI International and the University of
6 * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
7 * ("CTSRD"), as part of the DARPA CRASH research programme.
8 *

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

92 found_address = ((*i)->get_key() == "#address-cells");
93 }
94 if (!found_size)
95 {
96 found_size = ((*i)->get_key() == "#size-cells");
97 }
98 if (found_size && found_address)
99 {
100 break;
100 break;
101 }
102 }
103 if (!found_address)
104 {
101 }
102 }
103 if (!found_address)
104 {
105 report_error("Missing #address-cells property");
105 report_error("Missing #address-cells property");
106 }
107 if (!found_size)
108 {
106 }
107 if (!found_size)
108 {
109 report_error("Missing #size-cells property");
109 report_error("Missing #size-cells property");
110 }
111 return found_address && found_size;
112 }
113 };
114} // anonymous namespace
115
116bool
117checker::visit_node(device_tree *tree, const node_ptr &n)

--- 168 unchanged lines hidden ---
110 }
111 return found_address && found_size;
112 }
113 };
114} // anonymous namespace
115
116bool
117checker::visit_node(device_tree *tree, const node_ptr &n)

--- 168 unchanged lines hidden ---